.htaccess Excluding a directory
-
My blog is installed in directory /blog/ and I believe I have the .htacess correct because I can type in http://domainc.com or http://domain.com/blog/ and get my homepage. The problem is I want to be able to put in http://domain.com/test/test.php and have a file run but it keeps changing the address to http://domain.com/blog/test/test.php and giving me an error. Any suggestions on how I can exclude this one directory?
here is my current htaccess file
—
Options +FollowSymLinks
DirectoryIndex index.phpRewriteEngine On
RewriteBase /blog/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /blog/index\.php\ HTTP/
RewriteRule ^index\.php$ http://domain.com/blog/ [R=301,L]RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
—-
The topic ‘.htaccess Excluding a directory’ is closed to new replies.