Skip to content

Instantly share code, notes, and snippets.

@pjdietz
Created September 11, 2013 19:46
Show Gist options
  • Save pjdietz/6528809 to your computer and use it in GitHub Desktop.
Save pjdietz/6528809 to your computer and use it in GitHub Desktop.
Redirect with a simple Apache virtual host. No re-writing required.
<VirtualHost *:80>
ServerName bad-domain.com
ServerAlias www.bad-domain.com
Redirect / http://www.good-domain.com
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment