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).
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.
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!
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
Thank you Richard! :)
Adding SEOChecker.ForceHttps in web.config to 'true' solved the main issue.
is working on a reply...