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 www.bbb.com to point to www.ccc.com.I have the following script in my htaccess file:RewriteEngine OnRewriteCond %{HTTP_HOST} ^(www\.)?bbb\.com [NC]RewriteRule ^(.*)$ http://www.ccc.com/$1 [R,L]That works, but when I go to www.bbb.com/bla it is not redirected to ccc.com. It is redirected to www.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 www.ccc.com if the string bbb is anywhere in the url to fix my problem.Do you know a solution for this?
How to redirect all pages and all subdomains of a domain to the home page of another domain
domains;htaccess;subdomain