Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created March 8, 2017 22:32
Show Gist options
  • Save claudiosanches/08a9a59cac7da86f1b6542c1c0021ac0 to your computer and use it in GitHub Desktop.
Save claudiosanches/08a9a59cac7da86f1b6542c1c0021ac0 to your computer and use it in GitHub Desktop.
Redirect all pages to a new domain
RewriteEngine On
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