This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom 404 error pages and webcrawler results

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if this is the best place to post but here goes.
I have a custom 404 page set-up on my server and, upon an unsuccessful search, I manage to get that 404 page. Is there a way to tell web crawlers that this page is really a 404 error page (i.e. return status 404 to it)?
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, set the response Status-Code to 404. If your 404 page isn't returning this status already it's not really a 404 page. Have you checked what status code your 404 page is returning?
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Setting a custom 404 page on the server. Had to set the 404 link to be a File (not URL) first off. When checking what the status code was from the custom 404 page it was giving a 200 status code. Some more tinkering got it working.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic