Skip to content

Instantly share code, notes, and snippets.

@michalsen
Created December 4, 2017 14:17
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 michalsen/ed90a52a2ec889f44ad4baa4137ef8ee to your computer and use it in GitHub Desktop.
Save michalsen/ed90a52a2ec889f44ad4baa4137ef8ee to your computer and use it in GitHub Desktop.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^site.net [NC,OR]
RewriteCond %{HTTP_HOST} ^www.site.net [NC]
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment