Created
August 17, 2017 08:51
-
-
Save zooks/e2136f908c386db6c1b2b763498138a1 to your computer and use it in GitHub Desktop.
nginx trailing slash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
rewrite ^(/(?!backend).*[^/])$ $1/ permanent; | |
try_files $uri /index.php$is_args$args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment