Forum Moderators: phranque

Message Too Old, No Replies

redirect pages with PHPSESSID in htaccess

         

mlduclos

7:10 am on Feb 22, 2007 (gmt 0)

10+ Year Member



Hello

One of my scripts was generating pages with PHPSESSID parameter, so I edit the php.ini to avoid this. Now theres no more PHPSESSID. However, the server still response if you type the url with this parameter. Google Bot crawler genereate about 1500 hits daily, most of then to this cached URLS with PHPSESSID. So I am looking a way to redirect in htaccess all that pages to the index or itself without paramter.

Hits generated looks like that

thumbnails-33-page-1.html&PHPSESSID=7a8ce0d0c9739de5bbbea5d504f2d166

Thanks in advance

Note: the php script are using mod rewrite to turn .php in .html