Hi
I’ll like to make a 301 redirect like this:
http://www.my_domain.com/activate/?ac=xyz (xyz is random 36
alphanumeric
code)
TO
https://another_domain/blah_blah/signup/?ac=test
Please help
Thanks in advance.
Posted at Nginx Forum:
Hi
I’ll like to make a 301 redirect like this:
http://www.my_domain.com/activate/?ac=xyz (xyz is random 36
alphanumeric
code)
TO
https://another_domain/blah_blah/signup/?ac=test
Please help
Thanks in advance.
Posted at Nginx Forum:
On Fri, Nov 05, 2010 at 08:13:40PM -0400, cparfon wrote:
https://another_domain/blah_blah/signup/?ac=test
http {
map $arg_ac $ac {
xyz https://another_domain/blah_blah/signup/?ac=test
abc https://another_domain/blah_blah/signup/?ac=one
...
}
server {
location = /activate/ {
if ($ac) {
return 301 $ac;
}
return 403;
}
–
Igor S.
http://sysoev.ru/en/
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs