Welcome Guest, Not a member yet? Register   Sign In
Can CodeIgniter change .htaccess all by itself?
#10

[eluser]CroNiX[/eluser]
Your problem was probably because of the line I said you should remove conflicting with the other lines.

This is a good htaccess for CI
Code:
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]

Yes, some control panels can/will alter htaccess, and add lines like "AddHandler application/x-httpd-php54 .php" to switch the php version that you are using on the server, since you can actually have different versions of PHP running on the same server. You might need that at the top of you htaccess, but the rest should probably be what I posted unless you understand the implications.


Messages In This Thread
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 02:25 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 02:31 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 02:37 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 02:48 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 03:23 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 04:12 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 04:20 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 04:26 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 04:36 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 04:42 PM
Can CodeIgniter change .htaccess all by itself? - by El Forum - 09-12-2012, 05:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB