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. Intermediate & Advanced SEO
    4. Set up a rel canonical

    Set up a rel canonical

    Intermediate & Advanced SEO
    5 3 136
    • 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.
    • PeterRota
      PeterRota last edited by

      I have a question. I was wondering, if it was possible to set up a rel canonical. When I can't access the non canonical pages? For example, my site as at www.site.com , but the non cannocail is at site.com is their any way to set thet up without actually edting it at site.com ? Thanks for your help

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

        If there's no way to access site.com why will you set a canonical?

        If, for example, your sites serves the same content on site.com and www.site.com what you need is a "global" 301 redirect from site.com to www.site.com to avoid duplicate issues. As the file is the same in both domains, a canonical would help, but not appropriate in that case.

        Is that what you need?

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

          I'm confused. Assuming your site is at www.site.com and site.com, the duplicate is coming from a file, usually index.html or index.php, yes?  But it's the same index.html file.  So if you setup rel=canonical in index.html, both site.com and www.site.com will have a canonical on it.

          (Or I'm missing something.)

          PeterRota 1 Reply Last reply Reply Quote 1
          • PeterRota
            PeterRota @MattAntonino last edited by

            Hi Matt,

            Yes the duplicate is coming from index.html . So, when you click back to the homepage it goes to that. How would you suggest I get rid of that? Thanks for your help.

            MattAntonino 1 Reply Last reply Reply Quote 0
            • MattAntonino
              MattAntonino @PeterRota last edited by

              site.com and site.com/index.html are both loading index.html  So open Index.html, add the canonical tag back to your preferred version and you're done.

              If you're saying that you want the link to be something different, that depends on how the site is setup, whether you can change the "home" button or whatnot. In Wordpress's new menus this is simple. In other themes, not so much. In other CMS, I don't know because "it depends."

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Rel=canonical
                MickEdwards
                MickEdwards
                0
                4
                63

              • Rel="canonical" and rel="alternate" both necessary?
                Dr-Pete
                Dr-Pete
                0
                10
                9.3k

              • Use of Rel=Canonical
                motiv8
                motiv8
                0
                4
                132

              • What is the difference between link rel="canonical" and meta name="canonical"?
                Ideas-Money-Art
                Ideas-Money-Art
                0
                3
                1.3k

              • Is it ok to add rel=CANONICAL into the desktop version on top of the rel="alternate" Tag (Mobile vs Desktop version)
                Ideas-Money-Art
                Ideas-Money-Art
                0
                3
                172

              • Where to point Rel = Canonical?
                wojkwasi
                wojkwasi
                0
                6
                417

              • To "Rel canon" or not to "Rel canon" that is the question
                Dr-Pete
                Dr-Pete
                0
                10
                728

              • Rel Canonical = WHAT
                SEObleu.com
                SEObleu.com
                0
                3
                403

              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