Trailing Slash Redirect Loop Help

Alex Med nginx-forum at
Fri Apr 28 14:48:19 UTC 2017


Thank you for your reply.

So what you are suggesting me to do is something like this:

location / {
    try_files $uri $uri/ @rewrite;

location @rewrite {
     rewrite ^/(.*)/$ /$1 permanent;

Put try files inside the location block and create a new block with the

Thank you for the clarification!

Posted at Nginx Forum:,273964,273966#msg-273966

More information about the nginx mailing list