Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Should I 301 permanent redirect to my custom 404 page? I'm trying to figure out the correct way to send visitors to a custom 404 page when they hit a page that doesn't exist. Is issuing

@Nimeshi995

Posted in: #301Redirect #Redirects

I'm trying to figure out the correct way to send visitors to a custom 404 page when they hit a page that doesn't exist.

Is issuing a 301 redirect to the custom 404 page the recommended method?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

You do not want to do a 301 redirect to a 404 page. The 404 HTTP response tells the user-agent (browser, search engine, etc) that the requested document cannot be found. If you send a 301 HTTP response then they will think the document has moved to the new location which is your 404 page. That is not accurate.

When you encounter a page not found send the HTTP 404 response but load your custom 404 error page. That way the result of the request is accurate (and hopefully your error page explains it well in layman's terms so users can hopefully react to it in a way that is helpful to them and you).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme