: Webmaster tools showing 404 for non existent folder pages Google webmaster tools is reporting some/many 404 urls that don't exist on my site. The links are things such as domain.com/xyz/
Google webmaster tools is reporting some/many 404 urls that don't exist on my site. The links are things such as domain.com/xyz/ However that doesn't exist, but domain.com/xyz/index.html does exist. The "linked from" pages all show proper links to the "/xyz/index.html".
The page without index.html DOES 404, but why is google even trying these urls if they are not linked to?
My real question, is there a way to have google stop attempting to load these pages, and ultimately remove these from the crawl errors report. Thanks.
More posts by @Megan663
1 Comments
Sorted by latest first Latest Oldest Best
Google is probably trying them because someone has linked to those pages on their website or Google is assuming their is an index page for all of your directories of which there are none.
You have two possible solutions:
Do a 301 redirect from the /xyz/ to /xyz/index.html, etc. This will tell Google that /xyz/ has moved to /xyz/index.html and to stop looking for it.
Tell Apache to use index.html as the index file for your directories. You can do that by placing this snippet in a file called .htaccess and placing it in your web root:
DirectoryIndex index.html
If you choose option two be sure to also use canonical URLs on your index.html pages so you avoid duplicate content issues.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.