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

yaz nginx-forum at
Thu Jul 28 22:51:20 UTC 2011

I have an old urls that i want to transfer to homepage. : 

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 permanent;

Can i make this in one shot ? to redirect such URL ? Here it is done two
Tahnks and regards. 

Posted at Nginx Forum:,213054,213054#msg-213054

More information about the nginx mailing list