Page is a not externally linkable
nmjudy - 7:57 pm on Nov 24, 2008 (gmt 0)
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? 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
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.
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.+/)?index\.html\ HTTP
RewriteRule ^(.+/)?index\.html$ http://www.example.com/$1 [R=301,L]
#