Welcome Guest, Not a member yet? Register   Sign In
index.php removed from url problems
#1

[eluser]steel_slasher[/eluser]
i removed index.php from my urls by using the rewrite code found in the user guide userguide-urls and by altering the config file. But now i found that the rewrite code also redirects .css files for example http://domain.com/system/application/vie.../style.css would be redirect to CI and be processed as a controller

i have the code here if you cant be bothere to go to the link

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

EDIT: Problem fixed i used this code in .htaccess to fix the problem

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

many thanks to alexsancho




Theme © iAndrew 2016 - Forum software by © MyBB