Base href + relative link href for canonical link
-
I have a site that in the head section we specify a base href being the domain with a trailing slash and a canonical link href being the relative link to the domain.
<base <="" span="">href="http://www.domain.com/" />
href="link-to-page.html" rel="canonical" />
I know that Google recommends using an absolute path as a canonical link but is specifying a base href with a relative canonical link the same thing or is it still seen as duplicate content?
-
Hi there.
I would say it's not the best way to do it like that. I'm not entirely sure how google would react to this. There are couple way to check it. Basically, google bots are very similar to any other bot, so, you can use, let's say, a facebook debugger, or check your MOZ tools, see what they say. If those tools are saying there are errors, then google most likely will say the same.
Hope this helps.
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 and Alternate Advice
At the moment for most of our sites, we have both a desktop and mobile version of our sites. They both show the same content and use the same URL structure as each other. The server determines whether if you're visiting from either device and displays the relevant version of the site. We are in a predicament of how to properly use the canonical and alternate rel tags. Currently we have a canonical on mobile and alternate on desktop, both of which have the same URL because both mobile and desktop use the same as explained in the first paragraph. Would the way of us doing it at the moment be correct?
Intermediate & Advanced SEO | | JH_OffLimits3 -
Is a link inside a video player considered an inbound link from the domain the player is embedded in?
Good afternoon...We just added a link to our homepage inside the menu of our video player. In the link below, if you click on the menu icon in the bottom right corner of the video player, you'll see a "Powered by WellcomeMat" link at the bottom of the menu. http://www.wellcomemat.com/video/kt216e25172416n/-Rancho-Santa-Fe/Ca/92067/16596-Via-Lago-Azul/1234567890/ My question for the community is would that link be considered an inbound link from any site that has the video player embedded? So hypothetically, the video player is embedded into www.abcd.com. If a user would click on that link and go to our homepage, would search engines recognize that as an inbound link from abcd.com, even though it sits within our video player? And most of the time, the player sits within an iframe. So that's why I'm not 100% sure. Thanks for reading and for your help! It's much appreciated!!
Intermediate & Advanced SEO | | brian7201 -
What is better? No canonical or two canonicals to different pages?
I have a blogger site that is adding parameters and causing duplicate content. For example: www.mysite.com/?spref=bl
Intermediate & Advanced SEO | | TMI.com
www.mysite.com/?commentPage=1 www.mysite.com/?m=1 www.mysite.com/?m=0 I decided to implement a canonical tag on these pages pointing to the correct version of the page. However, for the parameter ?m=0, the canonical keeps pointing to itself. Ex: www.mysite.com/?m=0 The canonical = www.mysite.com/?m=0 So now I have two canonicals for the same page. My question is if I should leave it, and let Google decide, or completely remove the canonicals from all pages?0 -
Will Canonical tag on parameter URLs remove those URL's from Index, and preserve link juice?
My website has 43,000 pages indexed by Google. Almost all of these pages are URLs that have parameters in them, creating duplicate content. I have external links pointing to those URLs that have parameters in them. If I add the canonical tag to these parameter URLs, will that remove those pages from the Google index, or do I need to do something more to remove those pages from the index? Ex: www.website.com/boats/show/tuna-fishing/?TID=shkfsvdi_dc%ficol (has link pointing here)
Intermediate & Advanced SEO | | partnerf
www.website.com/boats/show/tuna-fishing/ (canonical URL) Thanks for your help. Rob0 -
Linking Within Website
Hello - I have about 10 landing pages that I am focusing on ranking for and I'm doing okay. My question is should I have all these pages on a drop down menu from my home page or is the innerlinking too much? http://www.kasplacement.com
Intermediate & Advanced SEO | | ksundheim10 -
Cross Sub Domain Canonical Links
I currently have 1 website, but am planning on dividing it into sub-domains specific to geographic locations such as xxx.co.uk, xxx.it, xxx.es, etc... We are working on creating original content for the sub-sites, however upon launch many will be duplicate pages. Is there a problem with cross sub-domain canonical links? Thanks!
Intermediate & Advanced SEO | | theLotter0 -
Blog links - follow or nofollow?
I need my memory refreshed here! Say, I've got a blog and some of the posts have links to recommended external sites and content. Should these be nofollowed? They're not paid links or anything like that, simply things relevant to the post.
Intermediate & Advanced SEO | | PeterAlexLeigh0 -
How does one know where to insert the right strips of coding on the right pages for Canonical Links?
On my Website, I am the only SEO optimizer wizard person. I have to teach myself everything and I get overwhelmed a lot. I recently started using SEOMOZ and on my report it stated we had duplicate page titles and that it was bad and should be fixed quickly. So I did my research and found that I needed to use canonical links to reference one page to be indexed. However my problem lies in exactly how to add this coding to my site. I greatly appreciate any help or at least looking at this question.
Intermediate & Advanced SEO | | FrontlineMobility0