I have changed my website from HTTP to HTTPS.At this moment, I have the next rewrite rule working to redirect calls for HTTP to HTTPS:RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.net/$1 [R,L] Should I write the URLs on the sitemap with HTTP or with HTTPS? (including the homepage)
If a website is accessed on HTTPS instead of HTTP, should the URLs on the sitemap be HTTPS or HTTP?
sitemap;https
The sitemap should reflect the way pages should be accessed, if you want them to be accessed by HTTPS, then yes, that is what you have to do. Otherwise, you are just making the server work a bit extra each time it's crawled.