In my explanation I’m using fake domain names as examples.
My office’s very uncomplicated website domainAA.com is very simply hosted by our ISP with FTP access only. All webpages are at the top level. We are bringing in someone to redesign the website in WordPress. No way to do that with the ISP. Our DNS zone file is with the ISP. Includes mail and remote access records.
We have a Godaddy account for registered domains. I added hosting for one of those domainBB.com. There I put a near duplicate copy of our office website, with some small adjustments so I can quickly tell the difference. I created a base WordPress file under that for the developer to work on. Directory privacy added to prevent public access.
We want the office website to continue to show up as domainAA.com.
I contacted the ISP and asked them to do a “forwarding with mask” so that when someone goes to domainAA.com it will redirect them to domainBB.com but still show up as domainAA.com in the URL address line. We do not want domainBB.com to be seen. ISP says they can’t do that. They can forward but mask. Not in their ability to do what we are wanting.
Really don’t want to move the DNA zone to Godaddy if we can help it. Spoke with Godaddy and they say our only option is to use htaccess.
So far I have found how to redirect from domainAA.com to domainBB.com but it is not masking. When someone goes to domainAA.com the following script redirects but the visitor does see domainBB.com in the URL address line.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.dpearson.com$ [OR]
RewriteCond %{HTTP_HOST} ^dpearson.com$
RewriteRule ^(.*)$ http://www.daviespearson.com/$1 [R=301,L]
Once I have the htaccess working the way I want it to work, then I would remove the other files from domainAA.com so there would no longer be two, duplicate websites. Duplicate websites will hurt our SEO. The htaccess file would be the only file left at domainAA.com so will need to forward any domainAA.com pages to matching pages at domainBB.com.
I’m hoping to find someone who has done this successfully and can help me out.