View Full Version : PHPSESSID and seo
softstor
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?
sarahk
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 ;)
softstor
06-30-2005, 04:52 AM
I read on another forum that google drops the session id when spidered.
dilligaf
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.
Leoweb
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
seomike
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
http://us3.php.net/manual/en/ref.session.php#ini.session.use-only-cookies
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
softstor
07-07-2005, 02:27 PM
I added this to my .htaccess file. Was this correct to do?
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>
seomike
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.