Hi,

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.

Eg.
Domain A
http://something.domainA.com

Domain B
http://subdomain.domainB.com/particular/page?parameters=yes

Desired URL in address bar
http://something.domainA.com/particular/page?parameters=yes

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

Cheers,

Recommended Answers

All 4 Replies

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
http://sub.domainA.com/StockLink/customerwebordering/Login.aspx?&Msg=&EMail=&CompanyCode=245512

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.