Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsword/986b60f1d21324e963cbd4a6658ae5ac to your computer and use it in GitHub Desktop.
Save davidsword/986b60f1d21324e963cbd4a6658ae5ac to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^oldnetworkname.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.oldnetworkname.com$
RewriteRule (.*)$ http://newname.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment