.htaccess - htaccess temporarily unavailable for specific folder -


After

I have a specific folder for which I want to trigger a 503 response (maintenance) The rest of my website should be accessible.

Can it be easily done in these?

I could browse the web but only find out the information about how to do this for the entire website.

  ErrorDocument 503/503.php RewriteEngine RewriteCond% {REMOTE_ADDR}! ^ 123 \ .456 \ .789 \ .000 RewriteCond% {REQUEST_URI}! At /503.php$ [NC] RewriteCond! ..% {REQUEST_URI} \ (css | gif | ico | jpg | js | png | swf | txt) $ RewriteRule * - [R = 503, L]   

PS: I also tried to find a more general tutorial on htaccess and such stuff so that I can learn the basics and understand things myself but whatever I found snippets and snippets and more Were snippets any suggestions?

After "text" itemprop = "text">

You just need to appear above the / folder / code. Htaccess where you want 503 custom pages to appear otherwise your code looks ok. Just make sure that /503.php is present.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -