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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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