Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Redirect 301 only exact url and not all other sub urls

$
0
0
Each nginx request is handled by one and only one location. Since these requests match the location you've put, that's where they're handled.

You'll need to set up two locations, once for that specific URI, and one for the others.

See http://nginx.org/en/docs/http/ngx_http_core_module.html#location.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>