简体   繁体   中英

Bulk import 301 redirects in IIS 6.0

Is there a mechanism, or any additional tools that I can make use of to bulk import 301 redirect rules into an IIS6.0 web application? I want to be able to 301 redirect some old .htm pages to their new home on a CMS to ensure the current search index entries resolve OK and don't 404, but there are roughly ~50 pages. The only way I've found to achieve this is to create dummy .htm files and then right click on the file->File tab->Redirect to a URL radio button within the IIS MMC snapin, which is a little laborious over the number of pages.

Thanks.

After a little head scratching, I went for Ionic's Isapi Rewrite Filter at http://iirf.codeplex.com/ . This allowed me to create a .htaccess-like file with the 50-odd redirects in it, and didn't require me to have dummy .htm files littered within the web application.

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