Page is a not externally linkable
nmjudy - 12:16 am on Nov 25, 2008 (gmt 0)
I've copied and pasted how I interpreted what I'm supposed to change. I'm not sure if I was clear about the first set of redirects. Is this correct? Or do I need the query string code BEFORE the index redirect? Sorry...I'm "mod rewrite challenged". Options +FollowSymlinks +Includes All -Indexes
It looks like the session ids may be being generated from a 3rd party social bookmarking script. I was able to use link:www.example.com/directory/index.html?PHPSESSID=d1df7a5b58659817c692854ed9c14ed6ý and found a couple of bookmarking scripts linking to my site through a user login screen.
RewriteEngine on
#
#
# 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]
#
RewriteCond %{QUERY_STRING} .
RewriteRule (.*) http://www.example.com/$1? [R=301,L]
#
# Redirect requests for resources in non-www domains to same resources in www domain
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteRule (.*) http://www.example.com/$1? [R=301,L]