Basically I want my CSS files that are located in:
http://localhost/crm/Websites/crm/css/style.css
to be accessable through:
http://localhost/crm/css/style.css
I've tryed a couple of things but it's not working, e.g.
RewriteRule ^/crm/css/style.css$ /crm/Websites/crm/css/style.css
RewriteRule ^(.+)/css/style.css$ $1/Websites/crm/css/style.css
Could someone point out what I'm doing wrong?
EDIT: a working rewriterule:
RewriteEngine On
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !\.css$
RewriteRule ^(.*)$ index.php [PT,L]
RewriteRule ^crm/css/style.css$ /crm/Websites/crm/css/style.css [L]
RewriteRule ^(.*)/css/style.css$ $1/Websites/crm/css/style.css [L]
Try this one and don't forget the condition this runs on:
RewriteCond %{HTTP_HOST} ^domain.com
Try this
RewriteRule ^crm/css/style.css$ crm/Websites/crm/css/style.css
Your htaccess file must be in the root directory of your website.