Welcome! Log In Create A New Profile

Advanced

Re: Got it work but looking for a better solution maybe...

Alexandr Gomoliako
July 28, 2011 07:10PM
On 7/29/11, yaz <nginx-forum@nginx.us> wrote:
> I have an old urls that i want to transfer to homepage. :
> http://www.mysite.com/Recherche.html?searchword=dummy+key

> if ($arg_searchword) {
> rewrite ^ $uri? permanent;
> }
> rewrite ^/Recherche.html http://www.mysiter.com/ permanent;

> Can i make this in one shot ? to redirect such URL ? Here it is done two
> steps.

localtion = /Recherche.html {
rewrite ^ http://www.mysiter.com/ permanent;
}

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

Got it work but looking for a better solution maybe...

yaz July 28, 2011 06:51PM

Re: Got it work but looking for a better solution maybe...

Alexandr Gomoliako July 28, 2011 07:10PM

Re: Got it work but looking for a better solution maybe...

yaz July 28, 2011 07:44PM

Re: Got it work but looking for a better solution maybe...

yaz July 28, 2011 07:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready