Created
June 10, 2012 19:42
-
-
Save micahasmith/2907093 to your computer and use it in GitHub Desktop.
nginx rewrite configuration
This file contains hidden or 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
# here i'm telling the server to rewrite all requests | |
# for that contain a html extension-- remove the html | |
rewrite (.*)\.html $1 permanent; | |
# here i'm telling the server to try finding the file by appending | |
# the .html on to it | |
# important since the files all have extensions | |
try_files $uri.html $uri/ /index.html; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment