Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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

In reply to Re: perlmonks.org "/~username/" to "/?node=username" mod_rewrite magic by radiantmatrix
in thread perlmonks.org "/~username/" to "/?node=username" mod_rewrite magic by jbisbee

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-23 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found