Forum Moderators: phranque
noob here.
i am sure this has been covered 1000 times but i don't know what to search on.
my problem is that when visiting example.com/ i get the error:
"Not Found
The requested URL / was not found on this server."
but when i use the url example.com/index.htm the site appears as it should.
if it matters, i am redirecting all http traffic to the https site, i.e. http://example.com redirects to [example.com...] and this is working once i add index.htm
many thanks.
[edited by: jdMorgan at 7:06 pm (utc) on June 15, 2009]
[edit reason] example.com [/edit]
DirectoryIndex index.htm
#to force https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule (.*) [%{HTTP_HOST}%{REQUEST_URI}...]
DirectoryIndex index.htm
#
# force https
Options -MultiViews
RewriteEngine on
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
Jim