tags:

views:

23

answers:

0

Hi, I have a problem with my .htaccess file. It ignores real directories and redirects directory requests to news.php like this: http://localhost/dir%5Fname/?category=dir%5Fname

It adds "?category=dir_name" if I request a real directory. I don't want any redirects for real files or directories. But I couldn't find the problem.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([\w-]+)/?$ news.php?category=$1 [L]