This is a quick howto disable PHPSESSID form appearing in your url an messing upp your google search results. The background to the problem is that googlebot doesnt use cookies and therefore will apache store the PHPSESSID in the url instead. To fix this, create a file called .htaccess and put in in you webroot. (note the dot before the filename)
The file must have the following contents:
#Force PHPSESSID into cookie or not bother
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
<IfModule mod_rewrite.c>
RewriteEngine on
Options All
#Remove PHPSESSID from existing links to your webpage.
#This tells google that your page /index.php?foo=bar&PHPSESSID=dasdagas has
#moved to /index.php?foo=bar
RewriteCond %{QUERY_STRING} PHPSESSID=.*$
RewriteRule .* %{REQUEST_URI}? [R=301,L]
</IfModule>

Kommentarer
7 weeks 6 hours ago
7 weeks 1 day ago
7 weeks 4 days ago
9 weeks 5 days ago
10 weeks 22 hours ago
10 weeks 6 days ago
21 weeks 4 days ago
21 weeks 6 days ago
21 weeks 6 days ago
22 weeks 1 day ago