15513
How-to 6 min read October 2, 2019

How to update a sitemap when switching to the HTTPS protocol

The HTTPS protocol is a way to securely transfer data of website users. HTTPS in the resource URL indicates its reliability for users and is an additional advantage in terms of SEO. Updating a sitemap is one of the important stages of switching to HTTPS.
HTTPS means HyperText Transfer Protocol Secure. The difference between the extension and the original HTTP protocol is in the "Secure" specification which indicates its security. The HTTPS protocol provides encrypted communication between a user and a browser.

Switching to HTTPS is a step towards resource reliability. Users trust such websites more and normally these websites are ranked higher in search results. A web resource running on HTTPS has higher position growth potential. However, when switching from HTTP to HTTPS, it is important not to lose the accumulated rating. To quickly and correctly change the protocol, you must perform several important steps.

Major stages of the SEO moving to HTTPS

1
SSL certificate connection.
2
Validating the correctness of its performance.
3
Configuring the 301 redirect.
4
Updating the sitemap.xml file.
5
Adding a link to the new sitemap in the robots.txt file.
6
Providing updated data for indexing by search engines to Search Console.
7
Configuring the HTTPS protocol in analytics services.

Switching to the HTTPS protocol and a sitemap

Adding an SSL certificate to the website is the main step in configuring data security. After setting up the certificate and validating the correctness of its performance, you need to take care of updating the files of the web resource which affect its scanning by the search robot as well as indexing of the pages.

Some CMS support automatic updates which mean that a sitemap with links containing the HTTPS protocol will be updated automatically. In other cases, you need to generate the new sitemap.xml file and specify the path to it in robots.txt.

How to update a Sitemap for HTTPS

When scanning a web resource, the sitemap.xml file is navigation for the search robot indicating which pages to index. The structured list of pages in a sitemap affects the quality and speed of indexing.

Changing the protocol from HTTP to its HTTPS extensions leads to respective changes in the URLs of the website's pages. Therefore, you must update the sitemap.xml file using the HTTPS protocol.

Stage #0. Updating the current map, if possible.

If a website has an actual sitemap with the HTTP protocol at the time of switching, you can download it to your computer and then you can automatically replace "http://" with "https://" in any text editor (Notepad ++ or standard Wordpad) and then upload it to the server.

This option is simpler and more convenient for large projects where it can take a lot of time to create a new sitemap from scratch. If the sitemap with HTTP is irrelevant or there is none of it altogether, you will have to create it.

Stage #1. Creating a new sitemap.

To create a new sitemap, just use one of the online services to create sitemap.xml, for example, MySitemapGenerator.
Sitemap.xml structure for HTTPS
Stage #2. Replacing the sitemap.xml file in the website's root folder.

After the website pages are scanned, a sitemap is generated and a new xml-document is downloaded to a PC, you need to replace the original sitemap.xml file. It is located in the root directory of the server. You can access it directly, in your hosting account or via FTP.

Also, some CMS, for example, WordPress with the installed Yoast SEO plugin, allow replacing the HTTPS sitemap through the admin panel.
Replacing sitemap.xml in the root of the site
The new sitemap will be available at https://site.com/sitemap.xml where site.com is the name of your web resource.

Stage #3. Adding actual links to the robots.txt file.

The next step is to direct the search engine to the updated site map using the robots.txt file. The line after the Sitemap should indicate the current link to the xml file.
Link to the sitemap in robots.txt and the Host directive
Stage #4. Sending an updated sitemap to the search engine robot.

Now you should take care of the website indexing keeping the changes in mind, that is, speed up the process of excluding HTTP pages from the index and start scanning all URLs with the HTTPS protocol. To do this, upload the updated sitemap.xml file to the webmaster panel.

Now you should take care of the website indexing keeping the changes in mind, that is, speed up the process of excluding HTTP pages from the index and start scanning all URLs with the HTTPS protocol. To do this, upload the updated sitemap.xml file to the webmaster panel.
Adding a Sitemap to the Google Search Console

Conclusion

The HTTPS protocol is an important sign of the reliability of the Internet resource which affects the security of users' personal data and the website ranking in search results. Switching to the HTTPS protocol and updating the sitemap are additional opportunities for its optimization.
This article is a part of Serpstat's "Site Audit" tool
SEO Audit in Serpstat" title = "How to update a sitemap when switching to the HTTPS protocol 16261788347968" />
Audit all the site or page in one click. A complete list of errors, sorted by severity, ways to resolve them and recommendations. Any frequency of verification and automatic email reports.
Run Site Audit

Speed up your search marketing growth with Serpstat!

Keyword and backlink opportunities, competitors' online strategy, daily rankings and SEO-related issues.

A pack of tools for reducing your time on SEO tasks.

Get free 7-day trial

Rate the article on a five-point scale

The article has already been rated by 4 people on average 2.75 out of 5
Found an error? Select it and press Ctrl + Enter to tell us

Discover More SEO Tools

Tools for Keywords

Keywords Research Tools – uncover untapped potential in your niche

Serpstat Features

SERP SEO Tool – the ultimate solution for website optimization

Keyword Difficulty Tool

Stay ahead of the competition and dominate your niche with our keywords difficulty tool

Check Page for SEO

On-page SEO checker – identify technical issues, optimize and drive more traffic to your website

Share this article with your friends

Are you sure?

Introducing Serpstat

Find out about the main features of the service in a convenient way for you!

Please send a request, and our specialist will offer you education options: a personal demonstration, a trial period, or materials for self-study and increasing expertise — everything for a comfortable start to work with Serpstat.

Name

Email

Phone

We are glad of your comment
I agree to Serpstat`s Privacy Policy.

Thank you, we have saved your new mailing settings.

Report a bug

Cancel
Open support chat
mail pocket flipboard Messenger telegramm