Last active
January 27, 2018 14:07
-
-
Save shabbirbhimani/1dd96bc1d450e23c465cc728705d5c40 to your computer and use it in GitHub Desktop.
.htaccess code to Redirect Subdomain to Root 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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^SUB\.DOMAIN\.com$ [NC] | |
RewriteRule ^(.*)$ http://DOMAIN.com [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment