We have rewritten our app in MVC5 and there is a new homepage " http://server/ ".
People have bookmarked our old homepage " http://server/App.aspx " and their links are now broken.
What do I do to redirect " http://server/App.aspx " to " http://server/ "
TIA!
You can use the IIS rewrite module if it installed. All you need to do is add this to the system.webServer
node in the web.config.
<rewrite>
<rules>
<rule name="rule1" stopProcessing = "true" >
<match url="App.aspx" />
<action type="Redirect" url="/" appendQueryString="false" />
</rule>
</rules>
</rewrite>
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.