Welcome! Log In Create A New Profile

Advanced

Redirect to a different url based on a query.

September 18, 2014 10:06AM
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 ^(.*) http://recover.geo.com $1 permanent;
}

But login url too (wp-login.php?action=login) is redirecting to
recover.geo.com

*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*

Can anyone please help us with the correct configuration.

Thanks
Geo
_______________________________________________
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: 200
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