Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Created May 30, 2019 14:52
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 davidperezgar/1bf456ef37864da5f511e72f11c0a248 to your computer and use it in GitHub Desktop.
Save davidperezgar/1bf456ef37864da5f511e72f11c0a248 to your computer and use it in GitHub Desktop.
Redirect all domain to new and keep url path
<IfModule mod_rewrite.c>
RewriteEngine On
redirectMatch 301 ^(.*)$ https://www.domain.com$1
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment