I have a rewriterule that looks like this:
RewriteRule ^search/([^/]*)/([^/]*)\.html$ /search/widget_sale.php?catid=$1&border=$2 [L]
it rewrites to html files if you have 2 parameters in the querystring. It works fine BUT then I have subfolders like this:
http://www.domain.com/search/alabama/ where I have and index.php file that takes 2 parameters.
My problem is that it seems that my rewriterule also rewrites files in the subfolder but I want to keep them as is.
I tried this:
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
and it works for not rewriting the folder but like I said, I do not want to rewrite anything in my subfolders.
Is this possible?