Page is a not externally linkable
jdMorgan - 5:34 pm on Nov 30, 2008 (gmt 0)
Note that that whole rule can be coded more efficiently in only two lines as:
Coming late to this party, the following changes would seem to be warranted:
# Redirect requests for index.html in any directory to "/" in the same directory
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.+/)?index\.htm[b]l(\?[^\ ]*)?\ H[/b]TTP/
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\.c[b]om$[/b]
RewriteRule (.*) http://www.example.com/$1? [R=301,L]
Changes:
# Redirect requests for resources in non-www domains to same resources in www domain
RewriteCond %{HTTP_HOST} ![b]^(w[/b]ww\.example\.co[b]m)?[/b]$
RewriteRule (.*) http://www.example.com/$1? [R=301,L]
Jim
Brought to you by WebmasterWorld: http://www.webmasterworld.com