Created
March 17, 2012 19:42
-
-
Save yesidays/2064699 to your computer and use it in GitHub Desktop.
htaccess para eliminar index.php en Codeigniter
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|php|script|styles|js|css) | |
RewriteRule ^(.*)$ /index.php/$1 [L] |
ERROR falta un (?):
Si el archivo/directorio no existe, redireccionamos
RewriteRule ^(.*)$ /index.php/$1 [L]
CORRECTO:
RewriteRule ^(.*)$ index.php?/$1 [L]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hola, a los que no les funciona aun, recuerden que deben habilitar en el httpd.conf de apache la propiedad AllowOverride a All