views:

25

answers:

1

Ok, i have a simple .htaccess for my engine. It simply rewrites all requests to index.php (much like Wordpress does).

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Now, i've run into an issue. I have search.php, which should be included with index.php. But, when i try to open example.com/search/ (which should be rewrited to index.php), it actually opens search.php which is in the same directory. How can i tell the engine to disable this strange 'alias'?

Thanks

+1  A: 

This behavior is probably caused by the MultiViews option. Try to disable it with:

Options -MultiViews
Gumbo
Thanks! This really solved an issue, i'm not good in htaccess so i didn't even how to search for it :)
Alex
+1: I ran into the same issue last night and just randomly saw this thread, followed the link, and learned something. thanks :)
Ty W