How to fix: HTTP URLs in sitemap.xml for HTTPS site

Last updated on July 3rd, 2026 at 08:50 am

Issue: If your sitemap.xml contains HTTP URLs for a website that uses HTTPS, it can confuse search engines, leading to incomplete or inefficient crawling of your site.

Fix: Update your sitemap.xml to ensure all URLs use HTTPS.

How to Fix for Beginners

Identify HTTP URLs: Open your sitemap.xml file and look for any URLs that start with http:// instead of https://.

  • Example: http://example.com/page should be updated to https://example.com/page.

Replace with HTTPS: Manually or using a tool, replace all HTTP URLs with their HTTPS versions.

Check Redirects: Ensure your HTTP pages already redirect to HTTPS. If not, set up 301 redirects.

Test the Sitemap: After updating, use Google Search Console’s “Sitemaps” tool to check and validate the updated sitemap.

Monitor for Issues: Run regular audits to ensure future updates don’t reintroduce HTTP URLs.

Tip: Using consistent HTTPS URLs improves site security, SEO, and ensures proper indexing by search engines.

 

More articles relating to Sitemaps:

Published by

JL Faverio

JL Faverio is a Technical SEO Consultant specializing in WordPress, technical SEO, and website maintenance. I help businesses and agencies fix technical SEO issues, maintain WordPress websites, improve site speed, and solve problems that other developers can't. With years of experience managing hundreds of WordPress websites, I focus on practical solutions that improve search visibility and long-term website health.