I have a file structure like this...
dirA/page1.html
dirA/page2.html
dirA/page3.html
dirB/page1.html
dirB/page2.html
...and so on.
These pages are only snippets that are plugged into the index.php file in my root folder via index.php?cat=dirA&page=page1 etc.
RewriteRule ^([a-z]+)/([a-z]+)$ /index.php?cat=$1&page=$2 [NC]
The idea is that when the user types in domain.com/dirA/page1, he is redirected to domain.com/index.php?cat=dirA&page=page1. The conflict is that dirA and page1.html actually exist as folder and file. Apache loads page1.html even though the URL doesn't provide the extension and ignores the rewrite rule.
Is there a way to maybe force Apache to ignore files unless the extension is explicit, thereby removing the conflict and processing the rewrite rule?
I know for sure that mod_rewrite works on my server.