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. Technical SEO Issues
    4. Canonical URL

    Canonical URL

    Technical SEO Issues
    3 2 263
    • 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.
    • bronxpad
      bronxpad last edited by

      I previously set the canonical Url in google web masters to the non www version, when I check my on page opt, it tells me that I have a critical issue with this. Should I change it in google web masters back to the www version? if so is there the possibility of negative results?

      Or is there a better way to deal with this?

      Note, I have inbound links pointing to both types.

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

        You should set the canonical URL on your actual website. First, I'd recommend picking either www or non-www and sticking with it with a 301 redirect. If you have a Linux server, put this code in your .htaccess file -

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

        Then on your pages, add the code to the HEAD of the document.

        bronxpad 1 Reply Last reply Reply Quote 0
        • bronxpad
          bronxpad @StreamlineMetrics last edited by

          My site is hosted by Yahoo and I don't have htaccess, what do I do in this case?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Clean URL vs. Parameter URL and Using Canonical URL...That's a Mouthfull!
            Roman-Delcarmen
            Roman-Delcarmen
            0
            4
            170

          • Canonical URL Change
            DonnaDuncan
            DonnaDuncan
            0
            2
            148

          • Canonical sitemap URL different to website URL architecture
            StephanSolomonidis
            StephanSolomonidis
            0
            3
            105

          • Canonical URL
            SnowFX
            SnowFX
            0
            3
            76

          • When to use canonical urls
            Dr-Pete
            Dr-Pete
            0
            5
            247

          • Regarding Canonical Url
            areygie
            areygie
            0
            3
            339

          • Blank Canonical URL
            OptimizeSmart
            OptimizeSmart
            0
            2
            783

          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