Created
January 26, 2015 17:17
-
-
Save misterzik/a86bb75ba8a0d6edd18d to your computer and use it in GitHub Desktop.
CodeIgniter-Subfolder-.Htaccess
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
# CodeIgniter Subfolder .Htaccess | |
# today hints by www.insanen.com | |
Options +FollowSymLinks | |
RewriteEngine On | |
# Please do-not forget to change RewriteBase /YOUR-SUBFOLDER HERE | |
RewriteBase /YOUR-SUBFOLDER | |
RewriteRule ^$ index.php [L] | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico) | |
RewriteRule ^(.*)$ index.php?/$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect! Thanks for this!!