views:

23

answers:

2

I have an .htaccess file with this: (I didn't write it)

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?bla=$1 [L,QSA]

Problem URL http://localhost/index/test The "index" part seems to match "index.php" that's in a web dir and Rewrite fails.
Question: What's wrong and how do I fix it?

A: 

Try with:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^(.*)$ index.php?bla=$1 [L,QSA]
hsz
Made the CSS file not load. Thanks for the answer though.
iC
You need an exclude files and directory. Your rule means, that it has to be a file or a directory.
DrDol
A: 

The enabled option MultiViews could cause this behavior. Try to disable it:

Options -MultiViews
Gumbo
Excellent! Thank you! :)
iC