deadelvis
10-10-2009, 11:44 AM
Hi
Can anyone please help me out with an htaccess rewrite expression?
I am trying to close off my website with a 503 but exclude one of the directories (keep this directory available).
Somehow this expression is not working (accessing the directory also returns a 503) on bluehost and I have no idea why.
RewriteEngine on
# exclude directory
RewriteCond %{REQUEST_URI} !^/some_dir_name$
# send plain text status code 503 - Service Unavailable
RewriteRule .* - [R=503,L]
Would be VERY thankful is anyone knows what is wrong with it.
Can anyone please help me out with an htaccess rewrite expression?
I am trying to close off my website with a 503 but exclude one of the directories (keep this directory available).
Somehow this expression is not working (accessing the directory also returns a 503) on bluehost and I have no idea why.
RewriteEngine on
# exclude directory
RewriteCond %{REQUEST_URI} !^/some_dir_name$
# send plain text status code 503 - Service Unavailable
RewriteRule .* - [R=503,L]
Would be VERY thankful is anyone knows what is wrong with it.