Page is a not externally linkable
dr0832 - 6:04 pm on Jan 15, 2013 (gmt 0)
What part of this needs to be change. I assume I just need to fill in my domain instead of example? Sorry this is pretty far over my head but I am trying to secure my website.
# Redirect index.html and .htm to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)index\.html?$ http://www.example.com/$1 [R=301,L]
# Redirect non-canonical to www
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]