Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stelios Giannoulis 4 posts 84 karma points
    Jul 17, 2018 @ 10:52
    Stelios Giannoulis
    0

    Umbraco 4.x multi site setup and redirection from http to https

    Hi,

    we have an umbraco 4.x multi site setup on a windows 7.x server. We recently installed an ssl certificate for all the domains so we want to redirect from http -that they are currently- to https.

    As I am very new to umbraco; if we put this rule in web.config would it do the trick?

    <rule name="HTTP to HTTPS redirect" stopProcessing="true">
      <match url="(.*)" />
      <conditions>
       <add input="{HTTPS}" pattern="off" ignoreCase="true" />
       <add input="{HTTP_HOST}" pattern="localhost" negate="true" />
      </conditions>
      <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
     </rule>
    

    Thank you very much in advance for your help.

  • Jamie Townsend 26 posts 174 karma points c-trib
    Jul 17, 2018 @ 12:18
    Jamie Townsend
    100

    That looks pretty much exactly what I've used myself on a few projects and it's always worked fine.

    Give it a shot!

  • Stelios Giannoulis 4 posts 84 karma points
    Jul 17, 2018 @ 12:42
    Stelios Giannoulis
    0

    Ha!

    It worked!!

    My first umbraco code update!

    My main concern was the multi site setup.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies