Is your live site supposed to have rel canonical tags?
-
I recently started working for a company and got them to use Moz and I have found that our secure site and our live sites are creating "duplicate content" according to the Crawl Diagnostics feature. On our secure site we have rel canonical tags pointing to our live site. I'm not super familiar with rel canonical tags, but our developer says we're doing the right thing. Would love any insight you guys may have if this is actually duplicate content or not. Thanks so much!
-
Agree with Dave's comments. 1) Get the syntax updated on your canonical links at a minimum. 2) Yes your canonical solution will "work", but it is not best practice. This "solution" is really a last resort. I would try and push to move away from using canonicals this way. You optimally want 1 URL.
Just to add some color, a great / classic video on this was made by Matt Cutts. He gives all kinds of examples where you could have duplicate URLs, i.e. www vs non www subdomain, sorting parameters added onto the URL, different file extensions, capitalization changes, etc. He then gives 3 options to fix them.
-
Best practice: Fix your site where you only have one URL per content item and link to it consistently (Best solution)
-
Use 301 redirects to consolidate to one URL (Next best solution)
-
Use a canonical link, if you cannot do 1 or 2. (Last resort)
Note that Matt says that they treat a canonical as a strong suggestion (it is treated similar to a 301), but they do not always have to follow it. He repeatedly says, use the first two options, and would NOT recommend a canonical as your best or first option.
My favorite quote is at 2:24 in the video, "Developers keep SEOs in business"
What your developer may notice is that Matt does say that using a canonical link for consolidating http and https will work. No one here would say that it would not, it is just not optimal. Sure, you can use a pair of scissors to cut your lawn, "it will work". It doesn't mean it's the best idea. I would think any developer worth his/her salt would want to have "clean code" and having duplicate URLs is not "clean" by SEO standards
Ok, so now you need to go back to the developer or your manager with an argument that is stronger than just, "Well, some random dude on the Moz forum said that Matt Cutt's from Google said it was preferred not to use a canonical link even though it would work". I would never want to leave you in such a position. Here is what will/can happen over time if you stay with your current setup.
-
Report consolidation issues. When you look at GA for traffic or OSE for links, any spidering tool for technical issues, social sharing counts, you now have split data for any given page potentially. Sure there are ways around this, but now you have to spend all your time "fixing" reports that should not be broken to start with. Trust me, this will come back to bite you on the bum and will cripple your efforts to show the efficacy of your SEO work. Now who really wants that?
-
Link juice consolidation issues. With any redirect - you lose a bit of link juice. If you have links to both sets of URLs, any single page is not getting as much credit as it should.
-
Down the line 301 redirect bloat. If you ever change anything and need to setup a 301 redirect, now you have to setup 2 of them and having too many 301s can negatively impact server performance.
One last thing. If you can get the URLs consolidated into one using 301s etc. Go with the https That is the way that we are headed with the web and so you might as well get going in that direction.
Good luck!
-
-
I really appreciate the response and the added information. I guess we will see if anyone else responds!
-
I'd be interested in hearing what someone else has to say about the way the canonicals are coded. You're doing yours similar to the way I do DNS Prefetching with the double slash to start the URL:
It works fine with prefetching as all the browser needs to do is find the IP of the domain but I'm not sure here how it'll handle sub-directories including www and I hate variables even when they're "it should work". The more common way to canonicalize your secured page would be:
/>
I'd be interested to hear if anyone has any direct experience with this but at the core of technical SEO issues I always lean to "most common usage" and "how Google shows it in their examples" just to make sure there is minimal chance of hiccups or issues.
That aside though, the developer is right though I'd always still prefer to just see the pages at a single URL. Since that can't be done however ... canonicals are the way to go.
-
That is correct! Here is an example of two URL's of what i'm talking about:
http://www.agroup.com/blog/5-signs-of-a-good-clientagency-relatoinship
https://agrouptt4.secure2.agroup.com/blog/5-signs-of-a-good-clientagency-relatoinshipDoes this help clarify my question? I hope so!
-
I'm not sure I entirely understand the scenario so let me note how I'm hearing it to make sure my understanding is correct to put the answer into context. Please do let me know if my understanding of the scenario is wrong as that may well change my thoughts on it.
You note that your secure site and live site are creating duplicate content. Of course a secure site can be live but I'm taking this to mean you have an area behind a login. That it's creating duplicate content is making me think that a lot of the core information is the same and I'm guessing many of the same pages.
If this is all correct and you can't put the duplicated pages onto one URL only then the canonicals are the way to go and your developer is correct.
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
-
Duplicate canonical tag issue
i have this site https://www.dealsmango.com/ which i have selected for canonical , but google is still selecting my old website https://www.selldealsmango.com/ , i have removed everything from old site only one page with new site link, and also put 301 redirect , but still when i click on request for indexing on google search console same error appears regarding duplicate canonical tag . what should i do? remove the canonical tag from old site which i don't want google to index, or what will be the best possible solution.
Moz Pro | | MudassirSultn0 -
403 error for a member site
Perhaps a stupid question but SEOmoz registers 403 errors for pages behind a membersite (ie. they are restricted on purpose). Should I noindex these pages or just let SEOmoz register these "errors"?
Moz Pro | | Crunchii0 -
Open site explorer not working this morning, anyone else have that problem?
Open site explorer not working this morning, anyone else have that problem? i am new, and i signed up because of open site explorer, but... no results! just a ooops! anybody has that problem today?
Moz Pro | | PLuc1 -
Open Site Explorer only exporting 120 rows!
Has this happened to anyone else? I keep running reports in OSE and then exporting them, but I only get 120 rows exported to the csv when it should be several thousand. Thought I'd ask around before raising it to the Moz team!
Moz Pro | | PeterAlexLeigh0 -
Open Site Explorer Missing URL's
I see a link to my site on a couple different url's, but they are not listed in OSE. The links have been active for a long time too. Does OSE not track all inbound links from all sites? Thanks, Stephen
Moz Pro | | stats440 -
Multi-languae site anda Campaigns
Hi, I need to optimize a multi-language site. It's an hotel chain website and has 4 languages. Each language version of the site must be optimize for a diferente Google Engine. The english version of the web must be optimized for Google United States, an so on. Do I need to create a new Campaign for each language? or can I use more than 4 Engines in one campaign. Thanks,
Moz Pro | | Dragut-Comunicacion0 -
Missing back links in Open Site Explorer?
I'm looking at the Open Site Explorer for my site, and it shows 9 links to my site, all from 2 domains (showing all links from all pages and for both www and not www version of my domain name). But I know for sure that there are other sites linking to my site. Are they not there because they are not important or because the links have not been crawled yet?
Moz Pro | | jsoldi0