Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: perlmonks.org "/~username/" to "/?node=username" mod_rewrite magic

by radiantmatrix (Parson)
on Nov 05, 2004 at 19:43 UTC ( [id://405602]=note: print w/replies, xml ) Need Help??


in reply to perlmonks.org "/~username/" to "/?node=username" mod_rewrite magic

I support this idea from a "maintainability" standpoint. I'd love to advertise my home node outside the Monestary. However, since the '?node=' notation is (a)ugly, and (b)could possibly change someday, it seems like a nifty idea to have a home-node URL like /~username that won't ever change.

The only issue I'd have with implementing this, is that it would seem a silly thing to do if mod_rewrite isn't already installed, or if there's nothing else we'd use it for.

But it isn't hard to imagine other things to use mod_rewrite for:

  • Section -> node_id mapping; e.g. /poetry => /?node=Perl Poetry
  • /inbox -> Message Inbox

Those are off the top of my head, but I'm sure it would be easy to come up with other "good shortcuts" that mod_rewrite would help with.

Of course, it isn't important to add such a feature, as the site is quite usable without it. But it would be nifty. ;-)

radiantmatrix
require General::Disclaimer;
"Users are evil. All users are evil. Do not trust them. Perl specifically offers the -T switch because it knows users are evil." - japhy
  • Comment on Re: perlmonks.org "/~username/" to "/?node=username" mod_rewrite magic

Replies are listed 'Best First'.
Re^2: perlmonks.org "/~username/" to "/?node=username" mod_rewrite magic
by demerphq (Chancellor) on Nov 06, 2004 at 17:27 UTC

    However, since the '?node=' notation is (a)ugly, and (b)could possibly change someday,

    Regarding B): while I suppose there is a remote possibility of the node= notation changing (there is also a possibility that I will win the lottery on the same day I meet and marry a super model) I can assure you there is absolutely no possibility that the node_id=XXXX style of linking ceases to function as long as the site is running.

    Point A) I can't help you with :-)

    ---
    demerphq

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://405602]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-25 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found