: How to redirect all pages and all subdomains of a domain to the home page of another domain I have an domain (www.aaa.com) and an alias (www.bbb.com). The alias domain points to the aaa.com
I have an domain (www.aaa.com) and an alias (www.bbb.com). The alias domain points to the aaa.com domain, but that's not what I want. I want bbb.com to point to ccc.com.
I have the following script in my htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?bbb.com [NC]
RewriteRule ^(.*)$ www.ccc.com/ [R,L]
That works, but when I go to bbb.com/bla it is not redirected to ccc.com. It is redirected to ccc.com/bla. That's not what I want.
And when I go to bla.bbb.com, I get an error.
I was thinking: maybe it is possible to redirect to ccc.com if the string "bbb" is anywhere in the url to fix my problem.
Do you know a solution for this?
More posts by @Voss4911412
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.