Apparently this should work: RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteCond %{REQUEST_URI} !^/directory(/.*)?$ RewriteRule .* /directory%{REQUEST_URI} [QSA,L] Code (markup): But it doesn't. Could it be the http.conf file on my host that's overwriting it?