iis 7 - IIS7 Url Rewrite Rule regex to make new path and strip extension -


how can create rewrite rule achieve following:

before: content/release/0.9.html

after: release-notes/0.9

right i'm having:

<rule name="rewrite rule1 content">     <match url="^content/release/(.+)$" />     <action type="rewrite" url="release-notes/{r:1}" /> </rule> 

how can rid of ".html" in "after" output?

try this:

<rule name="rewrite rule1 content">     <match url="^content/release/(.+)\.html$" />     <action type="rewrite" url="release-notes/{r:1}" /> </rule> 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -