I have a site arranged as follows with subdomains as subdirectories:
/ [webroot]
/subdomain1/
/subdomain2/
I'd like to create an htaccess file that rewrites all accessed files to maintenance.php w/ 503 message, but I'm not sure why the following does not catch the subdirectories?
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^111\.222\.333\.444$
RewriteCond %{REQUEST_URI} !^/maintenance\.php$
RewriteRule ^(.*)$ /maintenance.php [L]
Do I have to call out each subdirectory something like...
RewriteRule ^/subdirectory1(.*)$ /maintenance.php [L]
RewriteRule ^/subdirectory2(.*)$ /maintenance.php [L]