News:

Join the Facebook Fan Page.

Main Menu

session id,s

Started by rickyreter, October 04, 2006, 06:44:47 PM

Previous topic - Next topic

rickyreter

Hi, my home page does show in Google, but it seems no others do.

I suspect that the reason for this is the use of sessions in all my links, e.g.

http://panicfreedom.co.uk/index.php?PHPSES...e00&page=12

It is unlikely that Google will follow that. Can you get rid of the sessions IDs? If it was just :

http://panicfreedom.co.uk/index.php?page=12
Then google would index.

I want to use  http://www.panicfreedom.co.uk/  not http://panicfreedom.co.uk/
  how do i change this?

peter ;)



Oldiesmann

SMF automatically hides session IDs for googlebot and other spiders it recognizes.

However, to eliminate most of the session IDs, add this code to the beginning of index.php right after the <?php tag:

ini_set('session.use_trans_sid', 0);

That should hide the session ID most of the time. SMF will still display it the first time a guest visits the site, but after that everything should be handled by cookies.

To change the board URL, go to Admin -> Edit Server Settings.

Note that when you do this and click "Save", you'll get a message saying you're not allowed to access that section (or something like that), simply because your browser sees panicfreedom.co.uk and www.panicfreedom.co.uk as two different sites as far as cookies are concerned. Log back in after that and everything should be good.

rickyreter

umm..change url and can,t log out?

peter

Advertisement: