Page is a not externally linkable
- Google
-- Google SEO News and Discussion
---- Why am I seeing duplicate content with session id?


nmjudy - 7:57 pm on Nov 24, 2008 (gmt 0)


I'm 99.99% sure that these PHP session ids are not being generated by my site - so I'm just trying to figure out how to turn off the behavior.

Will inserting the following code in my .htaccess file, eliminate session ids from being used if they are being used in the link to me from another site?

php_value session.use_only_cookies 1
php_value session.use_trans_sid 0

If so, does it make a difference where exactly in my .htaccess file I put the code?

My current mod rewrite code for having all index.html pages '301'ing to the folder root is below. Is there a way to redirect any string after "index.html" to just redirect to the folder root (with the exception of anchor tags)?

# Redirect requests for index.html in any directory to "/" in the same directory
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.+/)?index\.html\ HTTP
RewriteRule ^(.+/)?index\.html$ http://www.example.com/$1 [R=301,L]
#


Thread source:: http://www.webmasterworld.com/google/3793076.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com