[eluser]skunkbad[/eluser]
I'd like to have all of my images inside the application directory, but want to mod_rewrite them so they look like they are at root. I've been trying on my local machine with no luck. Any help?
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^css [NC]
RewriteCond %{REQUEST_FILENAME} !^img [NC]
RewriteCond %{REQUEST_FILENAME} !^js [NC]
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT,L]
RewriteRule ^/css/(.*)$ /application/css/$1 [NC]
RewriteRule ^/img/(.*)$ /application/img/$1 [NC]
RewriteRule ^/js/(.*)$ /application/js/$1 [NC,L]