Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] .htaccess configuration is "hidding" my assets
#1

[eluser]Marcelo Reborn[/eluser]
Hello!


I had my .htaccess file configurated like the user guide recommends, to hide the "index.php".
But it's "hidding" someway all my other files, like javascript, css and images.

Even when I try the full url to an image, CI throws me an error 404.
Code:
http://marcelol.com.br/projects/lolproject/system/application/img/icons/edit.png

My .htaccess:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /projects/lolproject/index.php/$1 [L]


Looking the log:
ERROR - 2011-02-20 14:26:47 --> 404 Page Not Found --> system

CI is tring to access my system dir, as it were a class!

What can I do?
#2

[eluser]Rok Biderman[/eluser]
Should this line be like?
Code:
RewriteCond $1 !^(index\.php|images|assets|robots\.txt)
#3

[eluser]Marcelo Reborn[/eluser]
Coccodrillo, thanks!
I'm not experienced with Regular Expressions, neither .htaccess.

I didn't assumed that all itens from first expression meant what should be redirected, now I see that was a very simple problem!


I wrote that line this to get "freedom" to my imgs, css and js directories.

Code:
RewriteCond $1 !^(index\.php|imgs|css|js|robots\.txt)


Thanks again!




Theme © iAndrew 2016 - Forum software by © MyBB