By robdinardo on
Thanks to berwanger for this post. I am now able to change the URL for the many domains to the one domain that I wish. The post outlines how to have "domainA.com" or "domainB.com" rewrite to "www.domainC.com" - which is exactly what I want.
However, when someone enters "domainA.com" for my Drupal site, the URL gets rewritten to "http://www.domainC.com/?q=" How do I get rid of the "?q=" ?
Here is the contents of my .htaccess:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^(ww+\.)?domainA\.com
RewriteRule ^(.*) http://www.domainC.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^(ww+\.)?domainB\.com
RewriteRule ^(.*) http://www.domainC.com/ [R=301,L]
I tried adding the QSA switch and changing the order of the rules, but that did not help.
Any help would be appreciated. Thanks.