Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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
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

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

<IfModule mod_rewrite.c>
   RewriteEngine off

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

share|improve this answer

Your Answer


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.