Last active
September 20, 2018 23:17
-
-
Save tajidyakub/9b27245f73ab0f977274966dd6005d85 to your computer and use it in GitHub Desktop.
Redirect 301 to another domain .htaccess Apache in cPanel.
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 | |
RewriteCond %{HTTP_HOST} ^domain.com [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.domain.com [NC] | |
RewriteRule ^(.*)$ https://domain.co/$1 [L,R=301,NC] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment