Forked from UltraSimplified/.htaccess-codeigniter-gandi.net
Last active
August 29, 2015 14:21
-
-
Save KalenAnson/24acbbe35c2e7fc966a3 to your computer and use it in GitHub Desktop.
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
# temporarily disable Varnish | |
# to make it easier to test changes | |
Header add Cache-Control "max-age=1" | |
RewriteEngine On | |
# Existing files and directories remain accessible | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.* - [L] | |
# Redirect the rest | |
RewriteCond $1 !^(index\.php|public|assets|robots\.txt) | |
RewriteRule ^(.*)$ /index.php?/$1 [QSA,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment