[eluser]WebMada[/eluser]
Title: Why RewriteRule ^(.*)$ index.php?/$1 [L] is no more sufficient
Hello,
I am wondering why this piece of code that i've used in CI 1.7 doesn't work anymore in CI 2:
RewriteEngine on
RewriteRule ^(.*)$ /index.php?/$1 [L]
So now, how to do if we want to remove index.php in the URL?
I search in google and I found a trick like that:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Why in CI 2, we need now to use RewriteCond??