A Drupal site that works fine for regular users returns a 404 not found error when I try to use the W3C validator on it; it is also not being indexed by Google at all (which is the main issue but I suspect there is a connection). It is a
https:// site with
.htaccess rule to redirect any
http:// request to
I had had it running in Google webmaster tools and thought it was fine, but it turns out I had not added the HTTPS domain. After adding the HTTPS domain it's also returning the header as
HTTP/1.1 404 Not Found Date: Mon, 15 Oct 2012 19:37:43 GMT Server: Apache Expires: Sun, 19 Nov 1978 05:00:00 GMT Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0
robots.txt just has
User-agent: * Crawl-delay: 10 # Files Disallow: /cron.php
How can I check what the issue is here?
A Drupal site that works fine for regular users returns a 404 not found error when I try to use the W3C validator on it
It sounds like you are erroneously sending a "404 Not Found" HTTP response header for all requests, instead of a "200 OK". Regular users will "see" the working page, but the W3C Validator and search engine bots will report an error.
However, without more information about your specific site, this is impossible to answer further.