SEO gone mad...

itpp2012 nginx-forum at nginx.us
Mon Oct 12 21:54:21 UTC 2015


Something like this:

    map $request_uri $requri {
        default              1;
        /                    0;
    }

    server {
        if ($requri) { return 301 http://example.com$request_uri; } # handle
/xxxxx
        location / { # handle / only
[.......]

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,262128,262133#msg-262133



More information about the nginx mailing list