Forum Moderators: phranque
Is this correct that custom 404 pages should return 404?
Since it is a page on our site, we current have it set to return 200.
a custom 404 page should not return 200
ErrorDocument 404 http://www.example.com/missing.html
instead of simply ErrorDocument 404 /missing.html
The version with full protocol-plus-domain changes the 404 response into a 302 redirect, which in turn leads to a 200 on the new request. (There are undoubtedly ways to make the same mistake in IIS and other servers too, but this is the Apache subforum.)
ErrorDocument 404 /custom404page.html (or whatever the name of your custom 404 page is.) [edited by: Ocean10000 at 3:22 am (utc) on Apr 28, 2016]
[edit reason] removed link per tos [/edit]