I have deleted quite some pages from my website which I want to permanently redirect (301) to other pages, using my web.config file. What is the simplest syntax to redirect one page to another one? I tried this:
<rule name="name manager redirect" stopProcessing="true">
<match url="https://*jkp-ads.com/OfficeMarketPlaceNM-EN.asp"/>
<action type="Redirect" redirectType="Permanent" url="https://jkp-ads.com/excel-name-manager.asp"/>
</rule>
But that does not appear to work?
The issue is the part of match url. It doesn't contain http://domain:port
. It only match URI. So the rule should be
<rule name="name manager redirect" stopProcessing="true">
<match url="OfficeMarketPlaceNM-EN.asp"/>
<action type="Redirect" redirectType="Permanent" url="https://jkp-ads.com/excel-name-manager.asp"/>
</rule>
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.