404 Page Not Found, except for HTTPS
Permalink
I am having a hard time figuring this one out, especially since I have a development box that does not have the same problem. I am getting a 404 error on http://www.compco.com/sitemap/ but not on the HTTPS version (https://www.compco.com/sitemap/).
Here is the access log below - the first entry is HTTPS and the second is HTTP.
Please help point me in the right direction!
Here is the access log below - the first entry is HTTPS and the second is HTTP.
0.0.0.0 - - [15/Jul/2010:09:18:54 -0500] "GET /sitemap/ HTTP/1.1" 200 3419 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)" 0.0.0.0 - - [15/Jul/2010:09:19:05 -0500] "GET /sitemap/ HTTP/1.0" 404 3468 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)"
Please help point me in the right direction!
thats really weird, does it happen on any other pages?
No, it only occurs on this page. If I move the page to another folder (outside of home), it works fine. When I move it back, the problem arises again.
I found the following error message in my apache2 error log:
So I am thinking, why is "/sitemap/" becomming "/sitemap.xml/"? What is different about the SSL and non-SSL website?
It turns out that the non-SSL site had MultiViews enabled and the SSL site did not. I negated the MultiViews option and the non-SSL site no longer generates a 404 error.
[Thu Jul 15 10:42:18 2010] [error] [client 0.0.0.0] File does not exist: /path/to/my/www/sitemap.xml/
So I am thinking, why is "/sitemap/" becomming "/sitemap.xml/"? What is different about the SSL and non-SSL website?
It turns out that the non-SSL site had MultiViews enabled and the SSL site did not. I negated the MultiViews option and the non-SSL site no longer generates a 404 error.
Options +Indexes FollowSymLinks -MultiViews