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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -