View Full Version : PHPSESSID and seo
06-29-2005, 06:05 PM
I have a website that I am adding mod_rewrite to. But the first time the site is loaded it adds the ?PHPSESSID= to the html file.
The site seems to work correctly, but will having this session id be a disadvantage when my site os spidered?
06-30-2005, 01:26 AM
Google's guidelines state that the won't index anything with an id or session id.
Not being indexed is a disadvantage ;)
06-30-2005, 04:52 AM
I read on another forum that google drops the session id when spidered.
06-30-2005, 10:39 AM
If you go to the PHPBB site there's a line of code you can add to the header file that removes the session ID's for GBot. It's in the knowledge base section of their site.
07-07-2005, 10:41 AM
you must remove the phpsessid because google dont like it, try to read same documentation for the mod rewrite, its possible to remove the session id
07-07-2005, 02:22 PM
If you have access to the php.ini file on the server root there is a variable in there that blocks the session id from showing up in the url.
session.use_only_cookies = 1 // enables no url session id passing
if you don't have access to the .ini file you can alway see if the ini_set() function is enabled with your host. You can use that to change it by just running a script :p
07-07-2005, 02:27 PM
I added this to my .htaccess file. Was this correct to do?
php_value session.use_trans_sid 0
07-07-2005, 02:41 PM
I saw that posted here too.
That should do the same thing ;) Best way to test it is clear you session and head to the site.
vBulletin v3.0.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.