Welcome Guest, Not a member yet? Register   Sign In
Can't link to css file if remove index.php using .htaccess file
#3

[eluser]fesweb[/eluser]
You are going to have a lot more problems if you don't change it to something more like this:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
This version only rewrites urls that do NOT point to actual files or directories. With your version requests for images, pdfs, css, js, etc will all get sent through CodeIgniter, which is not what you want.

EDIT: IN other words, you would have to alter your htaccess every time you want to add a directory to your server.


Messages In This Thread
Can't link to css file if remove index.php using .htaccess file - by El Forum - 08-15-2011, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB