Can I use same sitemap for both HTTP and HTTPS Properties?

In Google Search Console, I had two properties for capewaytechsupport.com, non-www and www, in the http variant. I recently got an SSL for it and added the https variant properties, both non-www and www. It is a WordPress site and I used Yoast SEO to create a sitemap. The sitemap has only http: addresses in it. Can I use the same sitemap for both http and https properties?

thanks
jdfreeman2000Asked:
Who is Participating?
 
Chris StanyonCommented:
Hey,

It's probably easier if I just give you a link to a page that outlines the process. Some of the steps you will have already done. Some you won't. There will be some changes to the way WordPress is configured from the backend (admin). There will probably be a couple of functions that you need to add in yourself. Edits to the wp-config file.

You may also need to edit your .htaccess file, and you will likely need to do some tweaks to the database itself (such as where an image is embedded in a page as http://

Make sure all your resources (scripts / css etc) are set up to be included as protocol agnostic - i.e drop the http: or https:

Here's a decent link that gives you a good overall idea of the steps needed - https://css-tricks.com/moving-to-https-on-wordpress/

It sounds quite a lot to do but most are just 30-second tweaks. The DB edits may be the biggest part of it. In the page I've linked to, they talk about installing a plug-in. I've never found that necessary. Backup your DB before doing any work on it.

It's always easier to do all this setup before you start using your site, but sometimes that's not an option !
0
 
Chris StanyonCommented:
Given the way Google is going, they are looking to give you higher rankings for a site delivered over https, so rather than trying to get everything working over 2 different protocols, you'd be better off configuring your site to always delivery the https version. It would need a couple of tweaks to your Wordpress site (and probably the htaccess file in the project root). You would then tell google that your base domain was the https version and every visit to the site would then serve up the secure version.
1
 
jdfreeman2000Author Commented:
Thanks, Chris, What are the tweaks? I have changed Settings -> General -> WordPress address and Site address to the https variant and Yoast automatically created a sitemap with https: addresses
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.