Welcome! Log In Create A New Profile

Advanced

Re: Redirect 404 errors to the home page

Jonathan Matthews
April 04, 2013 08:18AM
On 4 April 2013 11:40, johnnybut7 <nginx-forum@nginx.us> wrote:
> Hi,
>
> 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
> so i have static page displayed currently and even applied some javascript
> 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/error_page with
http://nginx.org/r/proxy_intercept_errors should do what you want.
Let us know how you get on.

Jonathan

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirect 404 errors to the home page

johnnybut7 April 04, 2013 06:40AM

Re: Redirect 404 errors to the home page

Jonathan Matthews April 04, 2013 08:18AM

Re: Redirect 404 errors to the home page

johnnybut7 April 04, 2013 08:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 175
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready