Copied to clipboard

Flag this post as spam?

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


  • Rotem Orbach 121 posts 607 karma points
    Jul 29, 2021 @ 11:56
    Rotem Orbach
    0

    SiteMap.xml with errors

    Hi Richard,

    Our sitemap.xml is created, but for some reason all links in it are only http (they should be https), and the home-page itself has a trailing slash at the end (there shouldn't be one).

    For example: it creates http://www.mysite.com/ instead of https://www.mysite.com

    The trailing slash is added only to the homepage. However all links in sitemap.xml begin with http instead of https.

    I can't seem to find references to that, it seems like I am missing something obvious :)

    SeoChecker is not configured to add a trailing slash at the end, or course.

    Many thanks!

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Aug 09, 2021 @ 08:02
    Richard Soeteman
    0

    Hi,

    I think Umbraco is configured to add the trailing slash in urls . SEOChecker uses the normal .Url methods to render the url.

    The http url comes from the default context which is http (behind a procu maybe)? you can force https in sitemap by setting SEOChecker.ForceHttps in web.config to true.

    Best,

    Richard

  • Rotem Orbach 121 posts 607 karma points
    Aug 17, 2021 @ 13:33
    Rotem Orbach
    0

    Thank you Richard! :)

    Adding SEOChecker.ForceHttps in web.config to 'true' solved the main issue.

Please Sign in or register to post replies

Write your reply to:

Draft