Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Webmaster tool crawl error - Not Found

         

webfreebie

10:23 am on May 14, 2010 (gmt 0)

10+ Year Member



Guys,
When my default page is .../index.htm, it shows I have 404 (Not found) problem with .../index.html.
I changed my default page to .../index.html. I also changed my internal links to ../index.html or .../. It then shows I have 404 (Not found) problem with .../index.htm.

And now I have two errors. Anybody had the same problem?

tedster

6:52 pm on May 14, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The dots are the problem. Home links should go directly to the domain root itself - ideally "http://www.example.com/" or, second best IMO, simply "/"

aristotle

6:55 pm on May 14, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One possibility is that someone has linked to your site using the wrong extension. Also, when you made the changeover, you might not have changed all the internal links.

webfreebie

12:16 am on May 15, 2010 (gmt 0)

10+ Year Member



Tedster, thanks, but i didn't really use those dots. I used "http://www.example.com/index.html".

TheMadScientist

12:37 am on May 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Canonicalize the whole shebang back to the root... Problem solved:

RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html?
RewriteRule ^(([^/]+/)*)index\.html?$ http://www.example.com/$1 [R=301,L]

Modified Code from jdMorgan in the Apache Forum [webmasterworld.com].

g1smd

1:06 pm on May 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes. Add the above code to your .htaccess file and make sure you link to exactly "/" or to "http://www.example.com/" every time.