Mobile app version of vmapp.org
Login or Join
Caterina187

: How do I differentiate 404 messaging with no dynamic language ability on the web server? Depending on the type of page visited (for example, “static” content vs. product page), we have a

@Caterina187

Posted in: #Apache #SearchEngines #Seo

Depending on the type of page visited (for example, “static” content vs. product page), we have a requirement to show different error messaging when the page requested is not found. Given that we are on a two tier architecture and have no dynamic language ability on the web servers, we are using HTTP status codes in the 400 range to display this messaging using the ErrorDocument setting in Apache configuration.

These status codes, of course, show up in Google Webmaster tools as HTTP errors rather than not found errors and there is concern that these 400 range errors will not cause search engines to remove these pages from their indexes.

Is there anyone else who has had this type of requirement with the limitation of no dynamic languages on the web server - and if so - have you solved this problem differently?

Thanks

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina187

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

The "Not Found" error is HTTP Status Code 404. Any other status code is a different error. Don't worry, Google is perfectly capable of detecting and handling other status codes. It won't index your page if it returns a 4xx error, so if you can't return a different page for the same status code, then different status codes will be fine.

Try and make them sensible - "404 Not Found" and "410 Gone" are perfectly valid for missing pages, but "405 Method Not Allowed" doesn't make sense for that situation. See Wikipedia for a clear list of ones you should use.

Webmaster Tools, however, is a separate application to Googlebot and generally only reports what it thinks is "useful" information. So in this case it isolates 404 Not Found errors because that is the most common code when a page cannot be returned. I remember seeing a 500 error tab at one point too.

Finally, one possible solution: use Javascript to display different content based on the URL that is not found - for example if your static pages always end with .html and your dynamic ones .aspx or have no extension. (If you need help with that, it would be best to ask on Stack Overflow, which is tailored towards programming.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme