Redirect 404 errors to the home page
contact at jpluscplusm.com
Thu Apr 4 12:15:57 UTC 2013
On 4 April 2013 11:40, johnnybut7 <nginx-forum at nginx.us> wrote:
> Ive received a request stating that the website owner wants all 404 error
> messages redirected to the home page as its affecting their seo ranking(im
> not sure about this myself but thats another issue). Its a rails application
> to redirect to the home page but the seo tool still states there are X
> amount of broken links and that redirecting to the home page via the server
> config will fix this.
> I cant seem to get this to work in the nginx config, can anyone help me?
> Ive tried various solutions but nothing is working 100%.
http://nginx.org/r/proxy_intercept_errors should do what you want.
Let us know how you get on.
More information about the nginx