(Very rarely should an absolute URL be used here.)įor example, it should be like this instead: ErrorDocument 404 /page-not-found. The error document is not exposed to the end user. The 2nd argument to the ErrorDocument directive should be a root-relative URL-path, starting with a slash so that the error document is called with an internal subrequest. This is generally bad for SEO and delivers a bad user experience. page-not-found.html is exposed to the end user. Websites can display the 404 error message differently. Details of the request that triggered response are lost. A 404 error code means the page you are trying to reach is unable to be located in the web server. When a request does not map to a resource, the above triggers a 302 (temporary) redirect to the.
0 Comments
Leave a Reply. |