Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
September 24, 2014 08:42AM
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 = lostpassword) {
return 301 http://whatever$request_uri;
}
proxy_pass wherever;
}

should probably come close to what you want. You could test "$args =
action=lostpassword" if that better describes the requests that you want
to handle specially.

f
--
Francis Daly francis@daoine.org

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

Redirect to a different url based on a query.

geopcgeo September 18, 2014 10:06AM

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

geopcgeo September 19, 2014 12:00AM

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

Francis Daly September 24, 2014 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 177
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready