Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to return 404 for unknown page
#5
Yes, I already did that (it's the bug fix I mention in my first post).

[Later] README for hosted sites.

If you use a hosting company for your site, you may come across the problem I described. In summary, the cause is inaccurate logging. There is no bug in GS (apart from the one I mention above).

The issue was that I was checking my logs and noticed that a path I knew was invalid was returning a 200. I also knew that Google frown on incorrect 200 for SEO, so I wanted to fix it.

I then went into a long, convoluted and pointless testing session to try and find why GS wasn't returning a 404 for invalid paths.

Eventually, I telnet'ed into the server and was able to see the exact output. Lo and behold, GS was returning a 404. So, GS is doing the correct thing.

I still don't know exactly what is happening. I think that my hosting company's apache logs are not correct. The 404 is not showing in either the access.log or the error.log.

My hosting company is DreamHosti. I wonder what other DreamHost customers are seeing in their logs.
Reply


Messages In This Thread
How to return 404 for unknown page - by NickC - 2011-01-27, 13:54:34
How to return 404 for unknown page - by NickC - 2011-02-02, 21:28:45
How to return 404 for unknown page - by RobA - 2011-02-03, 00:32:27
How to return 404 for unknown page - by NickC - 2011-02-03, 15:50:32
How to return 404 for unknown page - by ccagle8 - 2011-02-03, 21:18:21
How to return 404 for unknown page - by RobA - 2011-02-04, 02:08:10



Users browsing this thread: 2 Guest(s)