Created
June 19, 2015 00:22
-
-
Save howardroark/ea575d24645b231540f8 to your computer and use it in GitHub Desktop.
index.html rewrites for Craft CMS
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
# Rewrite rules to allow AWS cloudfront to cache CMS pages | |
location = /index.html { | |
rewrite /index.html /index.php?p=index last; | |
} | |
location ~ index.html$ { | |
rewrite ^/(.*)/index.html$ /index.php?p=$1? last; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment