Answer the question
In order to leave comments, you need to log in
Nginx Rewrite how to exclude a directory?
All the best.
To add a slash at the end of a query excluding queries with a dot, do this:
rewrite ^([^.\?]*[^/])$ $1/ permanent;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question