mod rewrite - Activate site maintenance via RewriteCond -f check? -


i thought hitting file via -f (i think is) in mod_rewrite rewritecond, if file exists, rewrite maintenance page. don't think performance penalty should big, maybe people had other experiences or objections on idea?

why not this:

rewriterule !^maintenance$ maintenance [l] 

and in there repond 503 status code.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -