Skip to main content.

2002-Aug-10

Temporarily hosting a website -- well just the domain name but not pages. I want all pages to say same "sorry for inconvenience". Two Apache httpd ideas worked:
ErrorDocument 404 /index.html
which causes attempts to return 404 status code though. And:
RewriteRule   !/index.html      /full/path/to/index.html
If you don't use full path, then it defaults to server-wide DocumentRoot. And if try to just use a regex like "^.*$" then index.html will be checked to and some loop will cause strange 404.