How to exclude one subfolder from my RewriteRule Htaccess rules?
Posted
by tomaszs
on Server Fault
See other posts from Server Fault
or by tomaszs
Published on 2009-10-06T14:16:10Z
Indexed on
2010/04/03
18:03 UTC
Read the original article
Hit count: 328
I have a .htaccess in my root of website that looks like this:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.mydomain\.pl [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?([a-z0-9_-]+)\.mydomain\.pl [NC]
RewriteRule ^/?$ /index.php?run=places/%1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/index.php$
RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/upload/
RewriteCond %{REQUEST_URI} !^/javascript/
RewriteRule ^(.*)$ /index.php?runit=$1 [L,QSA]
I've installed custom guest book in folder guests and now I would like to disable rules above for this one specific folder. So that when I type:
mydomain.pl/guests
I would like to go normally to actual folder guests. I understand that I need to somehow disable rules above for guests subfolder, but how do I do this?
© Server Fault or respective owner