I have a domain
www.MyDomain.org
that is redirected to
www.AnotherDomain.net/MyDomain/
So if somebody types www.MyDomain.org/anypage.aspx it gets the correct page automatically at www.AnotherDomain.net/MyDomain/anypage.aspx.
The problem is that the latter address is shown in the address bar and also search robots don't have the reference to the "official" address.
I would like to have the asp.NET 2.0 server I use, to rewrite the page URL before sending it to the client's browser in the form www.MyDomain.org/anypage.aspx (as said, I already have automatic redirection to the physical site).
This will involve a further redirection for each visited page to the physical real one; I don't think it's a problem.
I know asp.NET offers URL RewritePath method feature, but it seems only to apply to the relative internal paths, not to the domain part of the address.
Is there any way to do what I need ?
Many thanks for your help: I'm completely newbie in asp.NET!