Question

Scenario : I have a PHP Forum and a Asp.Net site hosted on Linux and MS Hosting respectively (obvious right?!).

My domain ABC.com is currently configured with PHP host whereas my ASP.Net site is using the default 1and1 generated URL (s0987465.onlinehome.us).

So my question is, how to display ABC.com for any URL that includes s0987465.onlinehome.us?

Example : s0987465.onlinehome.us/test.aspx?id=100 should display ABC.com or ABC.com/test.aspx?id=100 in the address bar by displaying content generated by s0987465.onlinehome.us?

Was it helpful?

Solution

  1. Have you thought about simply using a subdomain of abc.com on your ASP.Net site? Eg. www2.abc.com.

  2. On top of that, or otherwise, you can display your pages from your ASP.Net site in an IFrame on your PHP site. That would mask the original domain from your ASP.Net.

  3. Further. Some ASP.Net hosting firms support PHP. So you can run both the PHP and ASP.Net sites on a single domain.

But I don't think you can rewrite the domain part of a URL. That would be a huge security hole if you could.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top