IIS7 URL Rerwrite - how to replace all underscores with hyphens in a Regex?
问题 I am using the URL Rewrite feature in IIS7 to turn the URL: /main.asp?category=Name_Of_A_Product Into: /category/name-of-a-product/ I have created the redirect & rewrite rules below which do the majority of the work, except I cannot find a way of replacing the underscores with hyphens. Each URL can have between zero and many underscores and I'm trying to replace them in a single regular expression, to avoid chains of 301 redirects (as I believe that is bad for SEO). Do you know how (or if)