How do I create a rewrite rule in IIS?

  • Page Owner: Not Set
  • Last Reviewed: 2018-11-01

I'd like to create a URL rewrite rule for IIS to make /secure/ and /episerver/ do the same thing. How can I create this?

Comments

  • would it be better to just redirect /secure to /episerver?
  • @BobDavidson answered this for me yesterday and it worked perfectly.

Answer

Bob helped me with this one yesterday.

    <rule name="Redirect /secure/ to /episerver" stopProcessing="true">
      <match url="^secure(/.*)?$" />
      <action type="Redirect" url="episerver/{R:1}" redirectType="Permanent" />
    </rule>