2

In Google Search Console/Webmaster Tools, I found 404 error URLs with this pattern: http://example.com/page-name/example.com

This is happening to all pages, posts, and even category type.

For example: Screenshot of 404 error in Google Search Console

Here is the .htaccess file:

Screenshot of .htaccess file

Does anyone know what might be causing this?

  • Please edit your question and include the contents of your .htaccess file as it is that which normally causes redirects such as this. But also you need to clarify what you mean by For some reason when doing crawl tests because from the looks if it your not doing a crawl test via the Fetch Tool. Googlebot is renowned for attempting to access non-existent URLs and as long as the fetch test works or a curl test... then you have nothing to worry about... as it says at the bottom 404's don't harm your sites performance in search. – Simon Hayter Mar 4 '17 at 21:52
  • If you mean the CRAWL errors found in your Google console then we already have a vast amount of questions and answers already on Pro Webmasters and your question 'may' be considered duplicate, unless something about it is unique and without providing more information its impossible to tell let alone answer. – Simon Hayter Mar 4 '17 at 22:08
  • Note also that your screenshot shows domainname.com appended to the end of the URL, not http://domainname.com, as you stated in the preceding paragraph - there's a big difference. – MrWhite Mar 4 '17 at 22:08
  • Did a CURL test on the URL and it works fine and it looks like crawl errors, not test errors. It is also possible that your hosting provider temporarily had glitch which caused Googlebot to be redirected like so, check your access.log, error.log log files for yesterday. – Simon Hayter Mar 4 '17 at 22:09
  • 1
    Your copyright link is missing the scheme: <a href="costproduct.com">COSTPRODUCT</a> - that would seem to be your problem, this would result in a URL of the form shown in your screenshot as this will be seen as relative to the current URL, so you will get an 404 from every page. (This at least explains the error in your screenshot, but not your written explanation - unless that's a "typo"?) – MrWhite Mar 4 '17 at 22:31
2

Your "copyright anchor" in the footer of your page is missing the protocol/scheme (and arguably a URL-path):

<a href="example.com">COSTPRODUCT</a> Copyright © 2017

This will be seen as a relative URL and will consequently result in an invalid link of the form http://example.com/page-name/example.com.

This is happening to all pages, posts, and even category type.

The above link appears on every page, so yes, you will get a similar 404 being reported on every page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.