简体   繁体   中英

IIS - How to mask a domain name to a specific page in another domain

Let say if the URL provided to users is

http://domainA.com

I need to redirect users to

https://domainB.com/page1.aspx

By having users still see https://domainA.com/page1.aspx in the address bar.

Then any links on page1.aspx must have domainA.com as domain name in URLs. Users should see the links like below links on page1.aspx

https://domainA.com/page2.aspx

https://domainA.com/page3.aspx

page1.aspx, page2.aspx, and page3.aspx are actually hosted on https://domainB.com

How could I achieve this? URLRewrite? ARR? How many rules do I need to set this?

To serve content from another domain you will need to configure IIS as a reverse proxy :

  1. Install Application Request Routing (ARR)
  2. Click Server Proxy Settings
  3. Check Enable proxy
  4. Set HTTP Version to Pass through

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM