Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.