Created
October 11, 2016 21:25
-
-
Save bogdandynamic/fb77f551982d658d7931a0d2f64cc960 to your computer and use it in GitHub Desktop.
Nginx rewrite (remove / from the end of the url)
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
if (!-d $request_filename) { | |
rewrite ^/(.+)/$ /$1 permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment