Copied to clipboard

Flag this post as spam?

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


  • Bradley Kronson 58 posts 109 karma points
    Feb 26, 2019 @ 12:14
    Bradley Kronson
    0

    HTTP site hosted behind HTTPS proxy not using correct protocol when generating sitemap

    So I have an interesting set up which is affecting the XML site map generation

    Our web site is hosted behind a proxy server which holds the sites SSL certificate.

    So the site sits native in HTTP, but the outside world sees it as HTTPS because of the proxy.

    When the sitemap is generated, it looks like the because the site is in HTTP, all links in the sitemap are generated by the IIS domain inside the proxy, ie the HTTP.

    This obviously causes some issues because all the links are actually HTTPS in the outside world

    Is there anyway to force the sitemap generation to use a specific domain ?

  • Richard Soeteman 3645 posts 11121 karma points MVP
    Feb 26, 2019 @ 13:18
    Richard Soeteman
    0

    Hi,

    It takes the scheme of the request that comes in so that makes sense. There was always a way to override this on node level but now I have made a config option that you can use to force HTTPS rendering. Add the following snippet to the appsettings of Web.config and all rendering of the sitemap should be https:

    <add key="SEOChecker.ForceHttps" value="true" />
    

    Download 2.2.4 Hotfix here. Will be included in the 2.2.4 release.

    Domain can be set when you assign the canonical domain to a rootnode

    Best,

    Richard

  • Bradley Kronson 58 posts 109 karma points
    Feb 26, 2019 @ 13:36
    Bradley Kronson
    0

    Thanks Richard, much appreciated!

  • Bradley Kronson 58 posts 109 karma points
    May 31, 2019 @ 10:39
    Bradley Kronson
    0

    Hi Richard, see you updated to 2.8, does that mean the 2.2.4 (for Umbraco 7) is not coming now?

  • Richard Soeteman 3645 posts 11121 karma points MVP
    Jun 03, 2019 @ 07:06
    Richard Soeteman
    0

    2.2.4 will also be release. 2.8 is Umbraco V8+ only. Can't support both Umbraco versions in a single package. Will do some final testing on 2.2.4 before release in the coming week(s)

  • Bradley Kronson 58 posts 109 karma points
    Jun 10, 2019 @ 14:04
    Bradley Kronson
    0

    Thanks Richard, looking forward to it

Please Sign in or register to post replies

Write your reply to:

Draft