Skip to content

Instantly share code, notes, and snippets.

@brianleejackson
Created April 21, 2015 04:34
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 brianleejackson/8787cca71b6147994095 to your computer and use it in GitHub Desktop.
Save brianleejackson/8787cca71b6147994095 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
@brianleejackson
Copy link
Author

Redirecting another domain with 301s will impact it. Many factors come into play, but anyone who says it doesn't probably doesn't know how SEO works. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment