1

I have a site named Site A (ASP.NET MVC) hosted in IIS. Now I need to host a subsite B (ASP.NET Core) as a sub application of Site A.

So url would be like

  1. www.domain.com - site A url
  2. www.domain.com/siteb - site B url

Notice that both site have same domain.

I am able to achieve this by Hosting site B as sub application of Site A in IIS.

What I need is instead of hosting Site B as sub application in IIS I need to host site B in separate server. But still I want to make end user feel that it is part of A. That is above url scheme should be maintained and it should be hosted as individual application. I don't want to use a subdomain. How it can be achieved any guidance please?

Bharat
  • 129
  • 7
  • 2
    Reverse proxy would allow doing this – Sami Kuhmonen May 11 '19 at 10:32
  • A really simple solution would be to use another sub, e.g. `www2.domain.com/siteB`. Or you could do `siteA.domain.com` and `siteB.domain.com`. And as you use the same domain, no one will really see it in any other way than they are a part of one another. – Asons May 11 '19 at 10:54
  • Another benefit is you don't need to add `/siteB` all the time for those url's, you can instead use simpler, shorter one's. – Asons May 11 '19 at 10:59
  • Possible duplicate of [How to host multiple .NET Core apps under same url](https://stackoverflow.com/questions/42348511/how-to-host-multiple-net-core-apps-under-same-url) – Asons May 11 '19 at 11:16

0 Answers0