GregM
GregM

Reputation: 2654

Asp.net url rewriting and domain redirection

I have a domain "test.com" and I want this domain to redirect to "mydomain.com/test". I'm with 1and1 for my domain test.com and with discountAsp for mydomain.com.

In the control panel of 1and1 you can set a redirection from a domain to another domain, so everything is fine.

But when i'm on the page mydomain.com/test I want my url to be rewritten as test.com

Is this possible to do that with IIS or in my asp.page (would prefer in my page)

I'm using iis7 Thanks

Upvotes: 0

Views: 532

Answers (1)

K. Weber
K. Weber

Reputation: 2773

I don't think you can do that, maybe you could use an iframe so from test.com you open an iframe containing web content hosted in mydomain.com/test, the visitor is seeing test.com but content is actually hosted in mydomain.com.

Upvotes: 1

Related Questions