index.php removed from url problems |
[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 |
Messages In This Thread |
index.php removed from url problems - by El Forum - 12-28-2007, 10:35 AM
|