Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

use path_info for pretty URL

by Thilosophy (Curate)
on Dec 28, 2004 at 11:27 UTC ( #417744=note: print w/replies, xml ) Need Help??


in reply to Re: Visitors logger cgi script
in thread Visitors logger cgi script

Disallow access to the real files and force users to access only the script. Use the query string to decide which file to load.
    Problems:
  • Really, really ugly URIs

Actually, the URIs do not have to be ugly if you use the path_info instead of the query string: http://myhost/index.html becomes http://myhost/a.cgi/index.html. You can even keep the URL same as before by using a ScriptAlias directive (which I suppose your host does not let you have, though).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-12-08 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (37 votes). Check out past polls.

    Notices?