Reputation: 267
I want the url:
http://localhost/application/cms/css/style.css
To go to
/application/www/cms/css/style.css
Where the 'application' folder is my root, where my .htaccess file and index.php are located. How would I accomplish this?
Upvotes: 1
Views: 136
Reputation: 785406
Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT directory:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^(application)/([^/]+/css/style\.css)$ /$1/www/$2 [R,L,NC]
Upvotes: 1