Reputation: 25
I have a website functionaloncology.com I want to redirect functionaloncology.com domain to cancertreatmentmx.com
But the sub pages and directories redirect on same domain e.g http://functionaloncology.com/amygdalin-b17/ this will redirect on same domain
But only this url functionaloncology.com redirect to cancertreatmentmx.com
Can anyone please help me to write the .htaccess code.
Upvotes: 1
Views: 42
Reputation: 784938
You can use this rule in site root .htaccess of functionaloncology.com
:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?:www\.)?functionaloncology\.com$
RewriteRule ^/?$ http://cancertreatmentmx.com/ [L,R=302]
Upvotes: 1