I would have a subdomain on domain A. Basicly I want to forward this to a particular page on domain B. But it's slightly complicated- I want to mask this so it looks like domain A hosts the actual page than domain B.

Domain A

Domain B

Desired URL in address bar

Hope that makes sense, please ask if there are any questions.


Don't you have access to your DNS settings? If so, you could just change the DNS settings of your domain A to load domain B instead. I'm no DNS expert, but I think that is possible. If so (or if not) I hope that there's anyone else here that can help you any further =).

I just had another go at it.

RewriteCond %{HTTP_HOST} ^http://sub\.domainA\.com$ [NC]
RewriteRule .? http://domainB.com/StockLink/customerwebordering/Login.aspx?&Msg=&EMail=&CompanyCode=245512 [R=301,L]

I've seen another site do exactly what I'm trying to do, the URL in the browser will be

I have limited access to DNS settings. The point is that I want to hide domain B and replace it with domain A. Both domains are held on different hosting providers.