Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
Anyone canm help? –  tomaszs Oct 6 '09 at 17:47
1  
Any particular reason you can't employ the same method as you use for the folders /images/, /upload/ and /javascript/ ? –  andol Dec 14 '09 at 15:58

1 Answer 1

A very quick "cheat" is to create a .htaccess in the guests folder with the content

<IfModule mod_rewrite.c>
   RewriteEngine off
</IfModule>

That will turn off rewrite for the folder in question (and any subfolders)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.