lucy24 - 11:12 pm on Jan 16, 2014 (gmt 0)
but all image/styling is missing
99 times out of 100 this points to a problem with relative links. Error documents (of any kind) are the 100th time.
If all requests lead to the 503 page, then you've made it impossible to serve any documents other than the 503 page. One solution is to use strictly internal styles; this also makes for fewer requests at a time when your server isn't set up to handle requests. (Won't help with images, unless they're tiny little things that can be served in dataimage form instead.) Another is to poke a hole for stylesheets, either via a <FilesMatch> envelope or by constraining the rule to requests for pages. A third-- or is it fourth?-- way is to add a RewriteCond checking for referer; if the referer is your own 503 page, admit any requests.
RewriteRule ^(.*)$ /$1 [R=503,L]
R values other than 30x don't return an address, so the argument will be ignored anyway. Just - will do. I'm also pretty sure all non-30x values carry an automatic [L], but the flag does no harm.
Do as I say. Not as I do. I've just realized that I made the same css mistake myself a few weeks ago when I moved. Luckily nobody was affected but robots.