Nginx: Redirect 404s to custom 404 error page

Wrong:

Above setting will return a 302 code to browser and search spider which is wrong.

Right setting:

Leave a Reply

Your email address will not be published. Required fields are marked *