Hi,
I need to know how to mask a domain either through .htaccess or through code. I have a website under the subdomain http://sub.domain.com which is working fine. Now I have another domain name www.newdomain.com and I want this to mask my the subdomain URL.So if a user goes to www.newdomain.com, they will see the http://sub.domain.com site, but the address-bar will still show www.newdomain.com. I know I could use a iFrame, but the client wants to www.newdomain.com/about to show the same content as http://sub.domain.com/about.
I know many of you may respond about the SEO problems this creates, but the client plans to advertise the www.newdomain.com only in print. So hopefully this domain name will never show up in the search engines. People will always see the site as sub.domain.com in Google unless they manually type in www.newdomain.com into the address bar from a magazine.
I already have the two virtual accounts set up on the server.
/home/newdomain/public_html
/home/subdomain/public_html
Any help is greatly appreciated.