[pmwiki-users] PHP session IDs in url

Anno anno at shroomery.org
Sun Feb 18 02:51:46 CST 2007


Patrick R. Michaud wrote:
> We could modify scripts/robots.php such that any search 
> engine robots that visit a site with PHPSESSID in the url
> are given an appropriate error response, such as 
> "301 Moved Permanently", "410 Gone", "403 Forbidden", or 
> "404 Not Found".
> 
> One possible downside is that if a robot only ever finds 
> links with PHPSESSID in them (due to PHP misconfiguration), then 
> the site might never be indexed.

You could do it so that all requests to pages with PHPSESSID are "301 
Moved Permanently" redirected to the page without the PHPSESSID in url. 
This way the danger of not being indexed is not given.




More information about the pmwiki-users mailing list