Yoast creates the XML sitemaps dynamically. As long as your site URL is using https, the links in your sitemap_index.xml from Yoast should reflect this. You can always try saving permalinks, even if you make no changes, and then try refreshing your sitemap.
Thx, I tried this but it doesn’t work.
Maybe I’ve set up something wrong in my host. The only thing I did consisted on activating SSL in Dreamhost.
And your site URL is set to a https version of your domain?
If yes, can you try disabling and reenabling XML Sitemap? From WordPress backend, go to SEO > Sitemap XML and disable, save, then reenable and save.
thx again.
It’s solved. My URLs had changed to http… I don’t know why.
But I have another question.
Why my home page is redirected from http to https and not the rest of pages?
I’m a newbe as you can see 🙂
-
This reply was modified 7 years, 7 months ago by
albiont.
-
This reply was modified 7 years, 7 months ago by
albiont.
There are a few ways to redirect pages from http to https — at the server level, with a plugin, or my favorite — with page rules, like with Cloudflare-hosted DNS.
Here are some of the most common ways to redirect pages from http to https:
https://kinsta.com/knowledgebase/redirect-http-to-https/