1 Reply Latest reply: May 13, 2013 6:37 AM by Ben Pleysier RSS

    IIS Rewrite

    ottz0 Community Member

      Sorry for this question but this is a trusty forum for me.

       

      Typical IIS, my marketing department wants to have a short URL mysite.com.au/connect however the current url to the page is long mysite.com/thisis/one/long/url.

       

      Can anyone help me with the expression, thanks

        • 1. Re: IIS Rewrite
          Ben Pleysier CommunityMVP

          Place the following, adjusted to your environment, in a root directory file called web.config

                  <rewrite>

                      <rules>

                          <rule name="test1" stopProcessing="true">

                              <match url="http://your-domain.com/index.htm" />

                              <action type="Redirect" url="http://your-domain.com/" redirectType="Permanent" />

                          </rule>

                      </rules>

                  </rewrite>