Page is a not externally linkable
Lorel - 2:59 pm on Aug 9, 2010 (gmt 0)
I'm confused as to the proper order to list items in an htaccess file. Is the following correct? Also is it ok to leave blank lines between items?
ErrorDocument 404 /missing.htm
AddHandler server-parsed .htm
Options +Includes
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^(www\.EXAMPLE\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.htm\ HTTP/
RewriteRule ^(([^/]+/)*)index\.htm$ http://www.example.com/$1 [R=301,L]
#if the "/" page is not supposed to have a query string or non-blank query
RewriteCond %{QUERY_STRING} .
# Redirect to "/" after clearing query string
RewriteRule ^$ http://www.example.com/? [R=301,L]
RewriteRule ^us\.html$ http://www.example.com/us.htm [R=301,L]
RewriteRule ^assesment\.htm$ http://www.example.com/assessment.htm [R=301,L]
RewriteRule ^PDF/Catalog\.pdf - [G]