Hey webfolks, could use some help!
I'm setting up my website with CodeIgniter, and all is going well so far. CI uses a uri segment system, so a link to my blog might look something like this:
example.com/index.php/blog/page/1So I'm using this .htaccess file to remove that
index.php out of there...
RewriteEngine On
RewriteCond $1 !^(index\.php)
RewriteRule ^(.+)$ index.php?$1 [L]
I know nothing about this, so it could be completely wrong (I borrowed the code from somewhere else). It seems to work fine, allowing me to just use this to go to the same page:
example.com/blog/page/1But it gives me one problem. I store other information on the root, such as the stylesheet and the graphics folder:
example.com/style.cssexample.com/gfx/Dropping that .htaccess folder in the root makes it so I can't access those files, which I assume is because it's [re-]inserting
index.php in there after the root. This htaccess code was just pulled from some place online, and I'm having a difficult time making sense of it. Is there a way to make it so it ignores these files, or I can make it ignore folders/files that actually exist, or is that beyond the scope of htaccess?
Still really a novice at this, so thanks for any help.