- Disable IIS original site
- IIS add in a new site, and the domain name and port of the original site consistent
- Add announcement prompted the page, such as: index.html
- New web.config file and set the web.config
-
1 <system.web> 2 <compilation debug="true" targetFramework="4.0"/> 3 <customErrors mode="On" defaultRedirect="/index.html"> 4 </customErrors> 5 </system.web>
- IIS> New Site> Error page> 404 status settings: response actions
- Choose to perform URL on this site
- Set the URL (relative to site root), such as: /index.html