Created
July 20, 2017 10:15
-
-
Save akinozgen/1396f518a10639b46300857e35c126bd to your computer and use it in GitHub Desktop.
perfect htaccess for my frameworks
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
# Open rewriteEngine | |
RewriteEngine on | |
# Allow removing /resources, index, | |
# index.php, robots.txt and robots | |
# from url | |
RewriteCond $1 !^(index\.php|resources|robots\.txt) | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# Allow remove index.php and use after them | |
RewriteRule ^(.*)$ index.php?/$1 [L,QSA] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment