Copied to clipboard

Flag this post as spam?

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


  • Carsten A Pedersen 5 posts 75 karma points
    Aug 06, 2019 @ 16:20
    Carsten A Pedersen
    0

    Redirect to https

    Hi everyone, I have installed Umbraco version 8.01 on Unoeuro.com. I set up the SSL certificate that is available and in Web.config changed this:

    -- add key="Umbraco.Core.UseHttps" value="false" --

    to this:

    -- add key="Umbraco.Core.UseHttps" value="true" --

    This works fine for backoffice.

    However I would like to enforce https on Front-end as well but everything I tried turns into an error.

    Does anyone have a great way to ensure and enforce http > https in version 8.01?

    //Carsten - Denmark

  • Amir Khan 1199 posts 2567 karma points
    Aug 06, 2019 @ 18:35
    Amir Khan
    0

    You can add this to your webconfig or to a separate config file and reference that file from the web.config, documentation is here: https://our.umbraco.com/documentation/reference/routing/IISRewriteRules/

    <rule name="Force HTTPS" enabled="true" stopProcessing="true">
        <match url="(.*)" />
        <conditions logicalGrouping="MatchAny">
        <add input="{HTTPS}" pattern="off" />
        </conditions>
        <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" />
    </rule>
    
  • Carsten A Pedersen 5 posts 75 karma points
    Aug 14, 2019 @ 11:32
    Carsten A Pedersen
    0

    Thank you Amir, I will give it a go

    //Carsten

  • 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