The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. On-Page / Site Optimization
    4. Why is On-Page showing canonical wrong?

    Why is On-Page showing canonical wrong?

    On-Page / Site Optimization
    8 3 686
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • HarrisonLighting
      HarrisonLighting last edited by

      I'm trying to use the On-Page report card and it's saying that my rel=canonical is wrong, I've looked and I can't see anything wrong with it, am I missing something?

      The url is www.harrisonlighting.co.uk/childrens-lights.html

      1 Reply Last reply Reply Quote 0
      • Marcus_Miller
        Marcus_Miller last edited by

        Hey, it looks okay from a quick view at the page you have listed above. What is the error message you are getting?

        HarrisonLighting 1 Reply Last reply Reply Quote 0
        • HarrisonLighting
          HarrisonLighting @Marcus_Miller last edited by

          It's in the on-page, as part of the critical factors, doesn't really give me a reason for the error it just says

          <dl>

          <dt>Canonical URL</dt>

          <dd>"http://www.harrisonlighting.co.uk/childrens-lights.html"</dd>

          <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>

          <dt>Recommendation</dt>

          <dd>We check to make sure that IF you use canonical URL tags, it points to the right page. If the canonical tag points to a different URL, engines will not count this page as the reference resource and thus, it won't have an opportunity to rank. If you've not made this page the rel=canonical target, change the reference to this URL. NOTE: For pages not employing canonical URL tags, this factor does not apply.</dd>

          </dl>

          Marcus_Miller 1 Reply Last reply Reply Quote 0
          • Marcus_Miller
            Marcus_Miller @HarrisonLighting last edited by

            Hey,  I have just  ran that page through the on page optimisation tool and it comes back with no errors, perfect score as it happens. Think it may have just been a bug when you ran it through or some other small problem as it certainly seems fine now.

            Marcus

            1 Reply Last reply Reply Quote 1
            • irvingw
              irvingw last edited by

              I would take a look at how you're handling redirects. Any page that I remove the www from the URL takes you to the home page and not the www version of the page. That's a huge mistake. I would suggest fixing that right away.

              http://harrisonlighting.co.uk/lumigos-princess-candlelight-philips.html

              HarrisonLighting 1 Reply Last reply Reply Quote 1
              • HarrisonLighting
                HarrisonLighting @irvingw last edited by

                Thanks I never noticed that, I don't have a clue how to fix it, if I use non-www it takes me to www which is what it should do but it doesn't seem to work if it's in a product, I've tried adding

                RewriteCond %{HTTP_HOST} ^www.harrisonlighting.co.uk$ [NC]
                RewriteRule ^(.*)$ http://harrisonlighting.co.uk/$1 [R=301,L]

                to my htaccess but them the site doesn't work 😞

                irvingw HarrisonLighting 2 Replies Last reply Reply Quote 0
                • irvingw
                  irvingw @HarrisonLighting last edited by

                  try this generic code:

                  RewriteEngine On
                  RewriteCond %{HTTP_HOST} !^www.
                  RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

                  Alternatively, try your code but lose the $ at the end of the first line like this:

                  RewriteCond %{HTTP_HOST} ^www.harrisonlighting.co.uk [NC]
                  RewriteRule ^(.*)$ http://harrisonlighting.co.uk/$1 [R=301,L]

                  1 Reply Last reply Reply Quote 1
                  • HarrisonLighting
                    HarrisonLighting @HarrisonLighting last edited by

                    Thank you your suggestion seems to have fixed it

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Will adding canonical affect traffic to the non canonical page?
                      Dalerio-Consulting
                      Dalerio-Consulting
                      1
                      2
                      48

                    • Why are http and https pages showing different domain/page authorities?
                      evolvingSEO
                      evolvingSEO
                      1
                      4
                      2.4k

                    • Google is showing the "wrong" page in the serps for user queries
                      zeepartner
                      zeepartner
                      0
                      10
                      305

                    • Is reported duplication on the pages or their canonical pages?
                      Safelincs
                      Safelincs
                      0
                      4
                      355

                    • Pages that show in Open Site Explorer that show as 404's in search
                      RyanKent
                      RyanKent
                      0
                      4
                      526

                    • Canonical to the page itself?
                      Dr-Pete
                      Dr-Pete
                      1
                      14
                      10.1k

                    • Google SERPS showing wrong page.
                      heatherrobinson
                      heatherrobinson
                      0
                      3
                      608

                    • Almost all pages showing under Notices Rel Canonical - why???
                      robanewman
                      robanewman
                      0
                      5
                      600

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    • Digital Marketers
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy