Easily Forward Requests from One Domain to Another


My WoW blog used to be located at wow.binarymuse.net; now it’s at www.thealtoholic.com. I ignorantly inserted images and links as absolute paths instead of relative ones–now all those URLs are dead, because wow.binarymuse.net is gone. Instead of going back and editing all my old URLs, here’s what I did:

1. If your old URL was a subdomain, as mine was (wow.binarymuse.net), add a new A record in the zone for your old domain (in my case, in the zone binarymuse.net, I added an A record for ‘wow’ pointing to my IP address).

2. Add a new ServerAlias in the VirtualHost entry for your new domain. In my case, I added the ‘ServerAlias wow.binarymuse.net’ to the VirtualHost entry for thealtoholic.com.

That’s it! Once everything propogated out, all my http://wow.binarymuse.net/something/somethingelse URLs automatically forwarded to http://www.thealtoholic.com/something/somethingelse!

, , , ,

  1. No comments yet.
(will not be published)
  1. No trackbacks yet.