I have created a drupal website on an address A (gn.christophemazuyet.com) and my client has bought a domain name B via Viaduc (www.petites-curiosites.com).
Viaduc has two redirection options : standard (which generates a 301 redirection) and hidden (which creates an iframe containing the site A).
The host of site A has two redirection options : standard and URL, one is said to be transparent, the second not.
I’ve been struggling a bit with htaccess but I’m fearing I can’t do much since Viaduc creates a 301 redirection. Could some htaccess guru help me out? My goal is to show the site A but with the domain name B and never see again gn.christophemazuyet.com.
Thank you!
You could try setting a CNAME record, if your hosting provider of petites-curiosites.com let’s you edit the DNS settings.
In detail:
Set the CNAME on http://www.petites-curiosites.com to
gn.christophemazuyet.com
Add a redirection from petites-curiosites.com to http://www.petites-curiosites.com with a .htaccess file (in the webroot of gn.christophemazuyet.com) like this: