Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: CGI queries without '?'

by mischief (Hermit)
on Feb 19, 2001 at 21:28 UTC ( [id://59409]=note: print w/replies, xml ) Need Help??


in reply to CGI queries without '?'

This is a good trick to use when you want your site to be more likely to be indexed by search engines. Some robots don't follow links that have query strings on the end (ie, links with "?var=something"), so you can fool them by using the CGI environment variable PATH_INFO instead (however you choose to access it). You can also use it to make pages look half dynamic and half static for the search engines, to try and control what they index. For instance, if you've got a forum type script that has posts archived in the format "/forum/msgnum/", you can add bits at the end with the query string like "/forum/msgnum/?mode=threaded" or whatever (I think slashdot might do something like this, not entirely sure though).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found