Rewrite for subdomain

António P. P. Almeida appa at
Sat Jan 7 22:51:11 UTC 2012

On 7 Jan 2012 19h11 WET, nginx-forum at wrote:

> I want to set a rewrite rule for redirection of search.php?q=word to
> I used the following rule but did not work.


location ^~ /search.php {
   return 301 http://$;       

--- appa

More information about the nginx mailing list