Thursday, September 03, 2015

How to change default application in a website in IIS

The solution to set one application as the default for when you hit a website is to change the website Physical folder, to match the application root folder. As explained in a Server fault post.
Another hack-around is to put a index.html page in the root of the site performing the re-direct.
Using the redirect feature of ISS can cause trouble with you application, I recommend against it.

The best answer form me is:
Turns out you can edit the physical path of the Default Web Site (right click, Manage Web Site, Advanced Settings). Change that to the physical path of the app you want to be default, make sure other settings match (in my case the App Pool had to be changed), and there you go.
Direct link to best reply

No comments :

Post a Comment