Forum Moderators: phranque
The ... thing is behaving as if something is happening on the GoDaddy Server, before anything reaches my ROOT .htaccess ...
AddHandler server-parsed .html .shtml .htm .shtm
#
# !Attempt Fix, here...!
Options +FollowSymLinks -Indexes -MultiViews
#
RewriteEngine On
#
# If no trailing slash or "." in URL
RewriteCond $1 !(/$|\.)
# and if URL with appended slash does NOT exist as a directory
RewriteCond %{DOCUMENT_ROOT}/$1/ !-d
# and if page DOES exist with ".html" appended
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
# then append ".html" to URL
RewriteRule ^(.+)$ http://www.example.com/$1.html [R=301,L]
#
# Redirect .shtm, .shtml, and .htm URL requests in www.example.com to .html
RewriteCond %{HTTP_HOST} ^www\.example\.com
RewriteRule ^(.+)\.(shtml?|htm)$ http://www.example.com/$1.html [R=301,L]
#
# Externally redirect all non-canonical hostname requests to canonical "www.example.com" hostname
RewriteCond %{HTTP_HOST} !^(www|schoolboard|lighterside)\.example\.com$
RewriteRule ^(.*)$ http://www.example.com/$1.html [R=301,L]
[edited by: jdMorgan at 11:51 pm (utc) on Dec 8, 2010]
www.example.com/index.html/[/*] www.example.com/index.html/morestuff.html[/*] www.example.com/index.html/ www.example.com/index.html/morestuff.html www.example.com/mypage.html/", the server does NOT return the index.html for the root, nor does it return a 404. Rather it returns the valid, existing "mypage.html", stripping, as it were, the trailing slash, and producing the page: "mypage.html" from the domain root. www.example.com/mypage.html/main.css FAILS.