简体   繁体   中英

asp.net two applications on one domain

I'm developing webpage with asp.net hosted on IIS and client requested to rework it so I made second application, then client said even though we only have homepage reworked it must go live, and that created a problem we have domain lets say www.example.com and we need to make rewrite from www.example.com/homepage to our second application and the rest routing must stay the same. Is it possible to make rewrites between two applications? What do I need to configure to achive that?

I'm using IIRF for redirects and rewrites.

It would be fairly easy to write an URL Rewrite (inbound rule) for this.

this article should give you everything you need... https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

before that you need to configure the app1 and app2 directories in the inetpub/wwwroot directory, and configure both of them as applications, it should have the effect you desire. then apply url rewrite to main app

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