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
Post a Comment