Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save duroe5698/3fa3962583bcd95b4257d641900848dc to your computer and use it in GitHub Desktop.
Save duroe5698/3fa3962583bcd95b4257d641900848dc to your computer and use it in GitHub Desktop.
htaccess redirect when moving to new domain
<IFModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ORIGINALDOMAIN\.com
RewriteRule ^(.*) http://NEWDOMAIN.com/$1 [L,R=301]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment