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:

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