Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created February 27, 2019 08:25
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 plugin-republic/178d7f1b2a7d3a7c7453bf7c2d14ef4b to your computer and use it in GitHub Desktop.
Save plugin-republic/178d7f1b2a7d3a7c7453bf7c2d14ef4b to your computer and use it in GitHub Desktop.
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule ^(.*)$ "https\:\/\/newdomain\.com\/$1" [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment