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
-
301 Redirect and Canonical link tag pointing in opposite directions!
I'm working on a site which redirects the non-WWW version to WWW version so, for example https://website.com/page redirects to https://www.website.com/page However, canonical link tags have been set up on the page - pointing back to the non-WWW so for example Q - is this going to cause issues and should the canonical be updated to the same version as the redirect?
Intermediate & Advanced SEO | | SWEMII0 -
Will link juice still be passed if you have the same links in multiple, outreach articles?
We are developing high quality, unique content and sending them out to bloggers to for guest posts. In these articles we have links to 2 to 3 sites. While the links are completely relevant, each article points to the same 2 to 3 sites. The link text varies slightly from article to article, but the linked-to site/URLs remain the same. We have read that it is best to have 2 to 3 external links, not all pointing to the same site. We have followed this rule, but the 2 to 3 external sites are the same sites on the other articles. I'm having a hard time explaining this, so I hope this makes sense. My concern is, will Google see this as a pattern and link juice won't be passed to the linked-to URLs, or worst penalize all/some of the sites being linked to or linked from? Someone I spoke to had suggest that my "link scheme" describes a "link wheel" and the site(s) will be penalized by Penguin. Is there any truth to this statement?
Intermediate & Advanced SEO | | Cutopia0 -
Link Building for Ecommerce
I need help - I'm trying to boost the rankings of a competitive category page - Leather Office Chairs First I'm thinking I need earned links - but for something like leather office chairs thinking of interesting, unique content people would love to read & share is proving difficult. I am struggling - can anyone help?!
Intermediate & Advanced SEO | | BeckyKey1 -
Affiliate Links Dilemma
Hello everyone. Our e-commerce website virtualsheetmusic.com has several hundreds affiliate incoming links, and many of them are "follow" links. I thought to redirect all incoming affiliate links to a "intermediate" page excluded by the robots.txt file in order to avoid any possible "commercial links" penalty from Google, but I now face a dilemma... most of our best referral links are affiliate links, by excluding those links from our back link profile could give us a big hit in terms of rankings. How would you solve this dilemma? What would you suggest doing in this sort of cases?
Intermediate & Advanced SEO | | fablau0 -
Use of Rel=Canonical
I have been pondering whether I am using this tag correctly or not. We have a custom solution which lays out products in the typical eCommerce style with plenty of tick box filters to further narrow down the view. When I last researched this it seemed like a good idea to implement rel=canonical to point all sub section pages at a 'view-all' page which returns all the products unfiltered for that given section. Normally pages are restricted down to 9 results per page with interface options to increase that. This combined with all the filters we offer creates many millions of possible page permutations and hence the need for the Canonical tag. I am concerned because our view-all pages get large, returning all of that section's product into one place.If I pointed the view-all page at say the first page of x results would that defeat the object of the view-all suggestion that Google made a few years back as it would require further crawling to get at all the data? Alternatively as these pages are just product listings, would NoIndex be a better route to go given that its unlikely they will get much love in Google anyway?
Intermediate & Advanced SEO | | motiv80 -
Canonical issue with my Home Page
Hi, My site has several canonical issues that should be fixed. http://www.crosscountryallied.com For my Home Page, more links are pointing at www.crosscountryallied.com/ (887) than http:// http://www.crosscountryallied.com/ctAlliedWebSite (27). It is recommended that I implement a 301 redirect to recapture a significant amount of link value. The following lists show the most common canonicalization errors that can be produced when using default settings on my web server: Microsoft Internet Information Services 6 (IIS): http://www.crosscountryallied.com/ http://www.crosscountryallied.com/default.jsp (or .jsp depending on the version) http://crosscountryallied.com/ http://crosscountryallied.com/default.jsp or any combination with different capitalization. Each of these URLs spreads out the value of backlinks to our homepage. Should I just redirect them to: http://www.crosscountryallied.com and add a canonical tag?
Intermediate & Advanced SEO | | Melia0 -
Duplicate content - canonical vs link to original and Flash duplication
Here's the situation for the website in question: The company produces printed publications which go online as a page turning Flash version, and as a separate HTML version. To complicate matters, some of the articles from the publications get added to a separate news section of the website. We want to promote the news section of the site over the publications section. If we were to forget the Flash version completely, would you: a) add a canonical in the publication version pointing to the version in the news section? b) add a link in the footer of the publication version pointing to the version in the news section? c) both of the above? d) something else? What if we add the Flash version into the mix? As Flash still isn't as crawlable as HTML should we noindex them? Is HTML content duplicated in Flash as big an issue as HTML to HTML duplication?
Intermediate & Advanced SEO | | Alex-Harford0 -
Links on Google Notebook
I have used OSE to look at links of a competitors site and notice they have dozens for links from Google Notebook pages eg http://www.google.pl/notebook/public/05275990022886032509/BDQExDQoQs8r3ls4j This page has a PA of 48 Is this a legitimate linking strategy?
Intermediate & Advanced SEO | | seanmccauley0