-
-
Save bob-moore/56a88a44ec6201f827cf8756a5cc4fb4 to your computer and use it in GitHub Desktop.
.htaccess Code Samples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Permanently Redirect Entire Domain | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^example.com [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.example.com [NC] | |
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment