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
    1 week ago
    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 953 posts 1885 karma points
    1 week ago
    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
    4 days ago
    Carsten A Pedersen
    0

    Thank you Amir, I will give it a go

    //Carsten

Please Sign in or register to post replies

Write your reply to:

Draft