.htaccess tutorial

htaccess Elite


PHP Session ID use for SEO

Using PHP in and with htaccess

PHP Session ID use for SEO

Postby ti89 » 03 Nov 2006 14:00

PHP Session IDs - session.use_cookies

PHP Session IDs will kill search engine's spiders. If you configure PHP incorrectly to rewrite every link to add the session ID then each time if will find what looks like a brand new page. Except, its not a brand new page. It's the same page from before with a new session ID.

Ensure that the "session.use_cookies" configuration is set to "1" so that the session id is not appended to each and every url on your site.

Rewriting URLs

Search engines have a hard time with pages with arguments like the following:

http://www.google.com/index.php?page=foo&dothis=bar

This could be real content or it could just be "http://www.google.com/index.php?page=foo" with no changes to the page or it could be accessing a database and there are an infinite supply of foos and bars the spider will try to download. Since no search engine wants to be accused of stealing all of somebody's bandwidth, spiders are reluctant to follow any links like the above. If the URL of a page has more than two arguments most search engines never index it.

The solution is to change the url so the search engine's spider thinks it is accessing a real file when really they're just following the old link. This is easily accomplished on a Apache web server by rewriting the urls dynamically.
ti89
 
Posts: 44
Joined: 28 Oct 2006 07:37

Re: PHP Session ID use for SEO

Postby vinyge » 06 Oct 2008 20:40

I am a novice with any kind of forum and am trying to set mine up for maximum SEO benefit. I have a forum using phpbb and dont have the slightest idea of how to dynamically and could use some help. Here is a link to my forum below.
http://www.industrialwebpros.com/forum
vinyge
 
Posts: 1
Joined: 06 Oct 2008 20:36


Return to PHP and htaccess



cron