简体   繁体   中英

IIS Bulk legacy redirects

I have several dozens of urls which need to be redirected, and I don't want to create a rule for each of them and I cannot group them. Each url has its own redirect.

Is there a way in IIS to create a rule in which I put all these redirects?

Thanks

  1. Open IIS
  2. Assuming you have URL Rewrite module installed, double click on it
  3. On the right side, on Actions, under Manage Server Variables there's View Rewrite Maps.
  4. On the right side, Add Rewrite Map, Fill in a proper name (eg: LegacyRedirects)
  5. Open the newly created rewrite map, and on the right side, there's "Add Mapping Entry":

Original value: source (eg: /contact-us/europe/germany) New value: destination (eg: /)

The above example redirects the traffic from the page with source path to the root page.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM