We are planning to shut down one web site “www.this-old-site.org” because it will be better for people to go straight through to the Hawaii Community Foundation… long story there… but we will continue to purchase, own and maintain “www.this-old-site.org” domain indefinitely.
So what we want is for all GET requests for
http://www.this-old-site.org/* [any page]
to redirect to
Ideally I could do this at the DNS level, but I don’t think you can set a domain to go to a specific page at another domain in a CHNAME A record for “this-old-site.org.” I’m no expert in DNS… but that’s my understanding. If that were possible we could then delete the virtual server “this-old-site.org” completely removing the home directory and all web content and do this at the DNS level. I have a back up here in “hard storage” so we don’t need it on the production server.
If I’m right and this kind of re-direct is not possible via the domain name zone records, we can of course do this by maintaining the virtual host, this-old-site.org, on our box and using .htaccess/mod_redirect to send users to the Hawaii Community Foundation Kauai page site. But I would rather not have to keep this “ghost” web site on disk just for redirect purposes, unless there are no other options. It’s a trivial amt of disk space… so that’s not an issue but if it is never used, why keep it on disk?
Is there a server level option? such that if the DNS still sends GET requests to an IP on our box… it redirects via httpd.conf, even if the virtual host is deleted from VirtualMin? I suppose one hack would be to change the DNS record for this-old-site.org to point to an IP of an existing site, then set the .htaccess on that site to send users coming in with that domain to redirect, but that still seems messy, piggy backing on another site for this purpose…