"On Page" report says 2 rel canonical urls-how do I fix that?
-
I am reviewing my On Page scores and I'm not getting a perfect score bk of this notice:
No More Than One Canonical URL Tag
Moderate fix
<dl>
<dt>Number of Canonical tags</dt>
<dd>2</dd>
<dt>Explanation</dt>
<dd>The canonical URL tag is meant to be employed only a single time on an individual URL (much like the title element or meta description). To ensure the search engines properly parse the canonical source, employ only a single version of this tag.</dd>
<dt>Recommendation</dt>
<dd>Remove all but a single canonical URL tag</dd>
<dd>HOW do I fix that?</dd>
<dd>I am using Platinum seo plugin which I have checked "Use canonical urls" and the page in question is</dd>
<dd>http://adderalldosage.net/general-adderall-dosage/</dd>
</dl>
-
Thank you both! So wordpress is generating one and platinum seo is too. I'm going to try this entry into the themes' function.php:
# Remove WordPress' canonical links remove_action('wp_head', 'rel_canonical');
Fingers crossed...!
-
Hi,
Your problem is very easy to solve. When I look in to your source of your page. I can see those 2 canonical urls.
The first one is on line number 13 and the second one is on line number 19 (See attached image)
For you, I think the easiest one to remove is the 1st link, That means find the code to generate the 1st canonical url to generate on line number 13 and simply remove that code or change the code as suitably.
It will solve your issue.
Regards
Prasad
-
You do indeed have 2 rel=canonical links on that page.
It looks as though Platinum SEO plug in is adding one in (its situated withing the
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
-
Should we rename and update a page or create a new page entirely?
Hi Moz Peoples! We have a small site with a simple site navigation, with only a few links on the nav bar. We have been doing some work to create a new page, which will eventually replace one of the links on the nav bar. The question we are having is, is it better to rename the existing page and replace its content and then wait for the great indexer to do its thing, or perm delete the page and replace it with the new page and content? Or is this a case where it really makes no difference as long as the redirects are set up correctly?
On-Page Optimization | | Parker8180 -
Should I add canonical links to pages that are redirected?
Hello! I am a little confused concerning canonical links. I have several URLs that all access my page, but I redirect them all. A lot of places I am told to redirect them or use canonicals. Other places, I read that I should always use canonicals. What is the right way for me? If I should use canonicals as well as redirects, which links should I do this on? I redirect my pages like this: http to https:
On-Page Optimization | | hermanok
http://example.com -> https://example.com www to non-www:
https://www.example.com -> https://example.com Remove trailing slashes
https://example.com/ -> https://example.com Would-be 404-requests to index.php?p=$1
https://example.com/home -> https://example.com/index.php?p=home ( show as https://example.com/home ) Example:
http://www.example.com/home/ -> http://www.example.com/home/ -> https://example.com/home/ -> https://example.com/home -> https://example.com/index.php?p=home ( shows as https://example.com/home ) Thank you!0 -
Noindex child pages (whose content is included on parent pages)?
I'm sorry if there have been questions close to this before... I've using WordPress less like a blogging platform and more like a CMS for years now... For content management purposes we organize a lot of content around Parent/Child page (and custom-post-type) relationships; the Child pages are included as tabbed content on the Parent page. Should I be noindexing these child pages, since their content is already on the site, in full, on their Parent pages (ie. duplicate content)? Or does it not matter, since the crawlers may not go to all of the tabbed content? None of the pages have shown up in Moz's "High Priority Issues" as duplicate content but it still seems like I'm making the Parent pages suffer needlessly... Anything obvious I'm not taking into consideration? By the by, this is my first post here @ Moz, which I'm loving; this site and the forums are such a great resource! Anyways, thanks in advance!
On-Page Optimization | | rsigg0 -
On Page Report Card F Grade Critical Factors
The website and page in question is http://www.upstrap-pro.com/ I sell non-slip camera straps and FYI for key word(s) camera strap(s) we were for a number of years on page 1 or 2. Google sold our registered trade-name _UP_strap® all over the web including Amazon. And of course we were hijacked for the keyword. Be that as it may According to SEOMOZ there are many errors on our homepage. I am having the host look at a number of SEOMOZ's report findings. Two critical findings that are making me nuts because I do not have the tech chops to understand why are: 1) Accessible to Engines <dl> <dt>Explanation</dt> <dd>Pages that can't be crawled or indexed have no opportunity to rank in the results. Before tweaking keyword targeting or leveraging other optimization techniques, it's essential to make sure this page is accessible.</dd> </dl> 2) Appropriate Use of Rel Canonical <dl> <dt>Explanation</dt> <dd>If the canonical tag is pointing to a different URL, engines will not count this page as the reference resource and thus, it won't have an opportunity to rank. Make sure you're targeting the right page (if this isn't it, you can reset the target above) and then change the canonical tag to reference that URL</dd> <dd>So here is the code:</dd> <dd>```
On-Page Optimization | | Asteg
<html xmlns="<a class="attribute-value">http://www.w3.org/1999/xhtml</a>"> <head> <title>DSLR-Camera-Straps Award Winning Non~Slip Shoulder Strapstitle> <meta name="<a class="attribute-value">description</a>" content="<a class="attribute-value">An Amazing Camera Strap that will NOT slip off your shoulder! Neck straps are bad for your neck & camera slings are bulky. Easy 60 day money back return policy.</a>" /> <meta http-equiv="<a class="attribute-value">Content-type</a>" content="<a class="attribute-value">text/html;charset=UTF-8</a>" /> <base href="http://www.upstrap-pro.com/Merchant2/" /> <link type="<a class="attribute-value">text/css</a>" rel="<a class="attribute-value">stylesheet</a>" href="css/00000002/cssui.css" media="" /> <link rel="<a class="attribute-value">canonical</a>" href="http://www.upstrap-pro.com/" /> </dl>0 -
Canonical tag for home page
This question was asked before but I didn't see a clear answer to it. If I've got a site that has as it's home page: http://www.mysite.com/, and there are many references within the site back to the home page that point to /index.php, should I include a canonical tag in the index.php page like this: to avoid a duplicate content issue, and to have all juice from both links combined into one?
On-Page Optimization | | wcksmith0 -
Include the company/domain name in page titles and urls?
I know this isn't something that I would use site-wide but I'm wondering if it helps or hurts me to use my company name (also my domain name) in pages below the homepage. As an example, let's say I'm Home Depot. In the category pages off the homepage should I use Page names and urls like Home and Garden Supplies or Home and Garden Supplies at Home Depot? Or does it hurt me to reuse my company/domain name on multiple pages?
On-Page Optimization | | kdieruf0 -
Rel="canonical"
Can you tell me if we've implemented rel="canonical" properly? We want this to be our primary: http://www.autopartstomorrow.com/parts/6052317-r-econ-semi-met-brake-pads- while this would be duplicate and refer robots back to the URL above: http://www.autopartstomorrow.com/parts/6054284 We've added the following to both pages: <link rel="canonical" href="http://www.autopartstomorrow.com/parts/6052317-r-econ-semi-met-brake-pads- "/> Thanks
On-Page Optimization | | jonesatl0