Dealing with non-canonical http vs https?
-
We're working on a complete rebuild of a client's site. The existing version of the site is in WordPress and I've noticed that the site is accessible via http and https. The new version of the site will have mostly or entirely different URLs.
It seems that both http and https versions of a page will resolve, but all of the rel-canonical tags I've seen point to the https version.
Sometimes image tags and stylesheets are https, sometimes they aren't.
There are both http and https pages in Google's index.
Having looked at other community posts about http/https, I've gathered the following:
- http/https is like two different domains.
- http and https versions need to be verified in Google Webmaster Tools separately. Set up the preferred domain properly.
- Rel-canonicals and internal links should have matching protocols.
My thought is that we will do a .htaccess that redirects old URLs regardless of the protocol to new pages at one protocol. I would probably let the .css and image files from the current site 404.
When we develop and launch the new site, does it make sense for everything to be forced to https? Are there any particular SEO issues that I should be aware of for a scenario like this?
Thanks!
-
Thank you Michael.
-
You're on the right track. Force it all to https, and keep the rel=canonical pointing to https versions.
Check out this thread of questions to Google's John Mueller on this topic:
Make sure you test very thoroughly before launching the https-only version: you'll run into issues with things like images, CSS, Jscript referenced via http instead of relative or protocol-free referencing. Same goes for your internal links: you don't want to throw away a ton of link juice (even if only 5% at a time) because of 301 redirects from http to https that you could have fixed :-).
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Canonical Issue On AMP
Hi everyone,
Intermediate & Advanced SEO | | MuhammadQasimAttari
I have one issue about canonical. kindly guide me about it. I have a site example.com/abc and I convert it on an amp and know its URLs is example.com/abc=?amp. but the search console tells me to add the proper canonical URL but both pages are the same. kindly guide me about it. what will I do?0 -
301 Old domain with HTTPS to new domain with HTTPS
I am a bit boggled about https to https we redirected olddomain.com to https://www.newdomain.com, but redirecting https://www.olddomain.com or non-www is not possible. because the certificate does not exist on a level where you are redirecting. only if I setup a new host and add a htaccess file will this work. What should I do? just redirect the rest and hope for the best?
Intermediate & Advanced SEO | | waqid0 -
Http, https and link juice
I'm working on a site that is built on DNN. For some reason the client has set all pages to convert to HTTPS (although this is not perfect as some don't when landing on them). All pages indexed in Google are straight HTTP, but when you click on the Google result a temp 302 header response to the corresponding HTTPS page for many. I want it changed to a 301 but unfortunately is an issue for DNN. Is there another way around this in IIS that won't break DNN as it seems to be a bit flaky? I want to have the homepage link juice pass through for all links made to non HTTPS homepage. Removing HTTPS does not seem to be an option for them.
Intermediate & Advanced SEO | | MickEdwards0 -
Canonical tag: how to deal with product variations in the music industry?
Hello here. I own a music publishing company: http://www.virtualsheetmusic.com/ And we have several similar items which only difference is the instrument they have been written for. For example, look at the two item pages below: http://www.virtualsheetmusic.com/score/Canon2Vl.html http://www.virtualsheetmusic.com/score/Canon2Vla.html They are the exact same piece of music, but written in a different way to target 2 different instrumental combinations. If it wasn't for the user reviews that can make those two similar pages different, Google could see that as duplicate content. Am I correct? And if so, how do you suggest to tackle such a possible problem? Via canonical tags? How? To have a better idea of the magnitude of the problem, have a look at these search results on our site which give you product variations of basically the same piece of music, the only difference is in the targeted instruments: www.virtualsheetmusic.com/s.php?k=Canon+in+D www.virtualsheetmusic.com/s.php?k=Meditation www.virtualsheetmusic.com/s.php?k=Flight And, similarly, we have collections of pieces targeting different instruments: www.virtualsheetmusic.com/s.php?k=Wedding+Collection www.virtualsheetmusic.com/s.php?k=Christmas+Collection www.virtualsheetmusic.com/s.php?k=Halloween+Collection Any thoughts and suggestions to tackle this potential page duplication issue are very welcome! Thank you to anyone in advance.
Intermediate & Advanced SEO | | fablau0 -
How far can I push rel=canonical?
My plan: 3 sites with identical content, yet--wait for it--for every article whose topic is A, the pages on all three sites posting that article will have a rel=canonical tag pointing to Site A. For every article whose topic is B, the pages on all three sites posting that article will have a rel=canonical tag pointing to Site B. So Site A will have some articles about topics A, B, and C. And for pages with articles about A, the rel=canonical will point to the page it's on. Yet for pages with articles about B, the rel=canonical will point to the version of that article on site B. Etc. I have my reasons for planning this, but you can see more or less that I want each site to rank for its niche, yet I want the users at each site to have access to the full spectrum of articles in the shared articles database without having to leave a given site. These would be distinct brands with distinct Whois, directory listings, etc. etc. The content is quality and unique to our company.
Intermediate & Advanced SEO | | TheEspresseo0 -
Why do my https pages index while noindexed?
I have some tag pages on one of my sites that I meta noindexed. This worked for the http version, which they are canonical'd to but now the https:// version is indexing. The https version is both noindexed and has a canonical to the http version, but they still show up! I even have wordpress set up to redirect all https: to http! For some reason these pages are STILL showing in the SERPS though. Any experience or advice would be greatly appreciated. Example page: https://www.michaelpadway.com/tag/insurance-coverage/ Thanks all!
Intermediate & Advanced SEO | | MarloSchneider0 -
Linking to Short vs Long URL
Suppose I have a long url on an established site and created a shorter version of it so it is easier for people to enter directly and click. I 301 the short version to the long. I don't think there is much concern for people linking to the long version pages, but will there be a tendency for people to link to the short url instead of the long for the domain links? Will I not benefit as much from links to the short vs the long? Thanks.
Intermediate & Advanced SEO | | AWCthreads0 -
Ad units or % of ads vs content?
When looking at content "above the fold" is it more important to look at ad units or the visual % of unique content to ads? For example, if there are 6 small ad units or one large ad unit that takes up 30% of the page, which is better for search engines? In general, is 50% unique content above the fold with 50% ads adequate or what % do you try to optimize for?
Intermediate & Advanced SEO | | nicole.healthline0