Welcome Guest, Not a member yet? Register   Sign In
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade
#5

[eluser]kettch[/eluser]
My htaccess that has been in production for several years now is:

Code:
RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^(index.html)$ $1 [L]
RewriteRule ^((images|styles|scripts|documents)/*.*)$ $1 [L]
RewriteRule ^(admin/*)$ index.php/$1 [L]
RewriteRule ^([a-zA-Z0-9]+)$ page/id/$1
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L]

After discovering this little rewrite problem I simplified it a bit with the same result:

Code:
RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^([a-zA-Z0-9]+)$ page/id/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Other than that, this site is pretty simple, 4 controllers, 2 models and about a dozen views. No additional custom helpers, libraries or routes beyond the core CI stuff.

I've also gone through all of the 1.7.2 core code to see if there was any custom code added there but have found none, so I'm a bit stumped.


Messages In This Thread
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade - by El Forum - 07-03-2011, 03:08 PM
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade - by El Forum - 07-04-2011, 03:12 PM
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade - by El Forum - 07-05-2011, 09:51 AM
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade - by El Forum - 07-05-2011, 07:10 PM
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade - by El Forum - 07-05-2011, 08:20 PM
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade - by El Forum - 07-06-2011, 09:58 PM
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade - by El Forum - 07-07-2011, 12:43 AM
Rewrite issue with CI 1.7.2 -> 2.0.2 upgrade - by El Forum - 07-07-2011, 09:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB