Tricky 301 redirect

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 :slight_smile:

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/