Make XML Sitemap use HTTPS for URLs

Yoyo Bubble asked on May 25, 2018 15:34

Greetings Fellow Kenticans! Happy Friday!

Is there a specific setting to force the xml sitemap to use secure URLs(https) instead of http? To clarify, these are the actual URLs of the pages within the sitemap. Not the sitemap page itself.

They are https in our staging environment but unsecure in our other two (pre-prod and prod) and I have not the slightest clue why. I was just going to write a script to replace the text http with https but that seems hacky and I'm sure there is a bette way.

Any help with this would be greatly appreciated.


Recent Answers

Brenden Kehren answered on May 25, 2018 15:43

If you're not forcing HTTPS, then it won't generate HTTPS only URLs. If you give the search engines your HTTPS url for indexing, it should automatically generate the HTTPS URLs in your output.

So 2 things you can do to fix:

  • force HTTPS across your site
  • provide HTTPS url to search engines
1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.