Forum Moderators: phranque
Does anyone know how I can get my .htaccess file to control every directory within root except for specific directories that I specify.
Here is my current code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST}!^(www\.¦$) [NC]
RewriteRule ^ [%{HTTP_HOST}%{REQUEST_URI}...] [L,R=301]
# Change ---.php to ---.html
RewriteCond %{REQUEST_FILENAME}!-f
RewriteRule (.*) pages\.php?page=$1
I basically have every file being requested to go to pages.php unless the file actually exists. I have a directory (we will call it "testdir") which I want to exclude in the .htaccess file so when someone requests a file within the testdir directory, the .htaccess file does not try to forward it to pages.php.
Can anyone help?
Thanks in advance for your help!
Wes