I need to redirect our old urls like the following using the IIS 7.5 url rewrite tool:



http://www.mywebsite.com/first+level/second+level/mypage.htm (urls can potentially be one or more levels deep)

Here are the transformations that would need to take place:

  1. Change .htm to .aspx
  2. Change "+" to "-" (if they exist)
  3. Add "/Pages" just before the name of the page

So the final result would follow this format:



Can anyone please help me with the regex to use?


  • This really isn't SharePoint specific at all, as you can tell with 14 hours and no responses. You'd have a response in minutes over on ServerFault.com. – James Love Jul 28 '12 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.