How to Return 503 Service Unavailable or other specific HTTP Status Code
sathishmanohar.com
sathishmanohar.com
RewriteEngine on
RewriteCond %{REQUEST_URI} !strike.html
RewriteCond %{REQUEST_URI} !^/strike_files/
RewriteRule (.*) /strike.html [R=503,L]
ErrorDocument 503 /strike.html
This will trigger 503 for every page request but /strike.html and its subdirectory, also Apache will serve the strike page content for browsers in place of any status codes 200 or 302 on the original request url.