Skip to content

Instantly share code, notes, and snippets.

@seanryy
Created April 21, 2021 11:56
Show Gist options
  • Save seanryy/3c67d3e055e053a6bbcf8880c45e9646 to your computer and use it in GitHub Desktop.
Save seanryy/3c67d3e055e053a6bbcf8880c45e9646 to your computer and use it in GitHub Desktop.
Simple Domain Migration htaccess Rewrite
# RedirectURLs permanently to new domain with SSL
RewriteCond %{HTTP_HOST} !^www\.yournewdomain\.com
RewriteRule (.*) https://www.yournewdomain.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment