Welcome! Log In Create A New Profile

Advanced

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

yaz
July 28, 2011 06:51PM
Hello,
I have an old urls that i want to transfer to homepage. :
http://www.mysite.com/Recherche.html?searchword=dummy+key

what i did and it's working (however i would be curious to know the proper way...)

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.
Tahnks and regards.
Yaz
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: 62
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