htaccess conversion nginx

António P. P. Almeida appa at perusio.net
Sun Feb 19 23:34:56 UTC 2012


On 19 Fev 2012 20h43 WET, nginx-forum at nginx.us wrote:

> What should I do ?

Try:

location ~ "^/([0-9a-zA-Z]{1,6})$" {
    return 302 /links/?to=$1;
}

location ~ "^/([0-9]{1,9})/banner/(.*)$" {
    return 302 /links/?uid=$1&adt=2&url=$2;
}

location ~ "^/([0-9]{1,9})/(.*)$" {
    return 302 /links/?uid=$1&adt=1&url=$2;
}

--- appa



More information about the nginx mailing list