Created
May 31, 2016 10:18
-
-
Save fernandiez/1ed8aee5b3191927bd6054ec851d7aa0 to your computer and use it in GitHub Desktop.
Domain 301 redirection from without www to www domain
This file contains 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
# Domain 301 redirection from without www to www | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^domain.com [NC] | |
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment