Re: Redirect to a different url based on a query.

2014-09-24 Thread Francis Daly
On Thu, Sep 18, 2014 at 07:34:32PM +0530, Geo P.C. wrote: Hi there, > *We need to redirect only the url wp-login.php?action=lostpassword to other > and all other url including wp-login.php?action=login need to proxypass* Untested, but something like location = /wp-login.php { if ($arg_action

Re: Redirect to a different url based on a query.

2014-09-18 Thread geopcgeo
Can anyone please help me on it Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253390,253405#msg-253405 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Redirect to a different url based on a query.

2014-09-18 Thread Geo P.C.
We have a wordpress installation and need to redirect lost password link to another different url for this we trying to setup a redirect rule but this is not working. Can anyone please help us. location / { proxy_pass http://localhost; } location wp-login.php?action=lostpassword rewrite