Created
June 18, 2013 10:38
-
-
Save elieandraos/5804321 to your computer and use it in GitHub Desktop.
Remove the index.php from URL (with .htaccess)
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
RewriteEngine on | |
RewriteCond $1 !^(index\.php|images|robots\.txt) | |
RewriteRule ^(.*)$ /index.php/$1 [L] | |
//For local server (localhost on wamp) | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule .* index.php/$0 [PT,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment