Can't include JS and CSS(htaccess problem)
Posted: 04. January 2008 07:23
Hello there,
So I've installed Apache, and finally got it setup so htaccess would work too.
Now it just won't include stylesheets and javascript files :-(
(htaccess)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-F
RewriteRule ^(.*)$ index.php?index=$1&%{QUERY_STRING} [QSA,L]
Instead it includes index.php because the script tells it to redirect to index.php no matter what.
What I don't understand is that the exact same script works on all the webhosts I've tried it out on.
So what do I do? How do I set it up, so it allows me to include stylesheets, images, javascript etc.????
Thanks up front!
So I've installed Apache, and finally got it setup so htaccess would work too.
Now it just won't include stylesheets and javascript files :-(
(htaccess)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-F
RewriteRule ^(.*)$ index.php?index=$1&%{QUERY_STRING} [QSA,L]
Instead it includes index.php because the script tells it to redirect to index.php no matter what.
What I don't understand is that the exact same script works on all the webhosts I've tried it out on.
So what do I do? How do I set it up, so it allows me to include stylesheets, images, javascript etc.????
Thanks up front!