Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Spring MVC + Apache tomcat + Apache httpd and I am seeking for best practices in order to redirect all http requests to a page indicating to my users that the website is in maintenance. FYI, my website will be hosted on Cloudfoundry.

share|improve this question
up vote 2 down vote accepted

I think a good solution is to use a simple .htaccess to redirect the requests.

share|improve this answer
Thanks Aurelio. Do I have to restart httpd in order for changes to it to be picked up? – balteo Sep 11 '12 at 13:17
@balteo Usually this depends on your Apache configuration. If you aren't sure of your config, just restart ;) – Aurelio De Rosa Sep 11 '12 at 13:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.