I'm trying to move host this weekend and in order to minimise confusion I'm going to put old and new sites offline for a day or so while DNS servers get up to speed. It would appear that the simplest thing to do is have a comprehensive redirect on the site such that any page request, including via cgi-bin, is redirected to my serverdown.html holding page. However, I can't seem to find a way of expressing this in .htaccess - most efforts end up with a 404 error.
I though the following would work
Redirect /acatalog http://www.mydomain/serverdown.html
Redirect /cgi-bin http://www.mydomain/serverdown.html
Redirect /index.html http://www.mydomain/serverdown.html
But I'm just getting 404's.
An 'obvious' entry such as
Redirect / http://www.mydomain/serverdown.html
also fails, probably because the reference is circular.
Any ideas?
Thanks,
simon
I though the following would work
Redirect /acatalog http://www.mydomain/serverdown.html
Redirect /cgi-bin http://www.mydomain/serverdown.html
Redirect /index.html http://www.mydomain/serverdown.html
But I'm just getting 404's.
An 'obvious' entry such as
Redirect / http://www.mydomain/serverdown.html
also fails, probably because the reference is circular.
Any ideas?
Thanks,
simon
Comment