| Posted: 15 May 2008 at 1:05am | IP Logged
|
|
|
I have a problem with excluding a sub directory in my re-write rules.
The website has two domains a .com and .com.au version set up on IIS. In the IIS administration panel there is a entry for the two domains pointing to the same directory. I can see the .htaccess code in the IIS administration panel fine, so it looks like it should be working ok.
For the .com.au version of the website the directory is excluded and working as I want. for the .com version, the directory isn't being excluded.
I don't know if this is because there is essentially two websites setup pointing to the same directory on the file system, or some other issue.
my .htaccess file - I'm trying to exclude drillingfluids sub directory - specifically I want to be able to view .html files:
RewriteEngine On
RewriteRule ^(drillingfluids/) - [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^midrilling/.*$ /resource-areas/mi-drilling-fluids.html [R=301,L] RewriteRule ^midrilling/$ /resource-areas/mi-drilling-fluids.html [R=301,L] RewriteRule ^greatideas/$ /resource-areas/great-ideas.html [R=301,L] RewriteRule ^resource/$ /resource-areas.html [R=301,L] #RewriteRule ^([^/]+)/$ /$1.html [R=301,L] RewriteRule ^(.*)\.html index.php?q=/$1 [QSA,L]
The rest of it seems to work fine.
I also put in the "drillingfluids" directory a .htaccess file containing
RewriteEngine Off
and that doesnt work either.
Any suggestions?
|