Using .htaccess to Redirect Visitors
I'm using the following .htaccess code to redirect visitors (who are not coming from my IP address) to an "under construction" page while I update my site. Using this in my root HTML directory, is there any way to exclude two sub-directories from this rule? For example, I want to leave my /forum and /images directories available to the public. Can it be done?
Code:
RewriteEngine On RewriteCond %{REMOTE_ADDR} !^12\.34\.567\.89$ RewriteRule !^offline\.htm$ /offline.htm [L]