How do I set the default page of my application in IIS7?

前端 未结 7 1015
北荒
北荒 2020-11-29 02:41

I deployed my web application to IIS7 and everything works just fine. However, instead of typing the url of my true starting page, I want it to automatically go to www.xxxxx

相关标签:
7条回答
  • 2020-11-29 03:40

    If you want to do something like,User enter url "www.xxxxxx.com/views/root/" & default page is displayed then I guess you have to set the default/home/welcome page attribute in IIS. But if user just enters "www.xxxxxx.com" and you still want to forward to your url, then you have write a line of code in the default page to forward to your desired url. This default page should be in root directory of your application, so www.xxxxx.com will load www.xxxx.com/index.html which will redirect the user to your desired url

    0 讨论(0)
提交回复
热议问题