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

    Redirect to https

    Hi everyone, I have installed Umbraco version 8.01 on 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 995 posts 2013 karma points
    Aug 06, 2019 @ 18:35
    Amir Khan

    You can add this to your webconfig or to a separate config file and reference that file from the web.config, documentation is here:

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

    Thank you Amir, I will give it a go


Please Sign in or register to post replies

Write your reply to: