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 tag, CNAME and 301 redirect

    Canonical tag, CNAME and 301 redirect

    Technical SEO Issues
    10 3 2.2k
    • 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.
    • casper434
      casper434 last edited by

      I have a website with a couple of domains pointing to one IP address. Let's say I have two domains   www.example.com and www.example.ca

      I also see during my SEO analysis that the example.com and the www.example.com (same for the example.ca and the www.example.ca) are triggering server responses.

      How do I deal with this issue for best SEO. Canonical links? CNAME, or 301 redirects?  thanks

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

        In fact that's the way to have just the sub-domain www. appearing online.

        And, sorry, I don't really understand the .ca e .com question... does those domains show the same content. In that case one of the two (.com if you target public worldwide or .ca if you target only Canada) should be redirected 301 to the other.

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

          Delete this for double posting (sorry)

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

            First of all you have to choose what u are going to use www or no-www, then stick to this! I suggest the www version as most of the people use this when typing in urls directly in their browser.

            Then go to your Google Webmaster Tools and set your preferred domain to your choice.

            Last but not least make sure you have a redirect for the traffic that does use url without www... You can do this with an .htaccess file. This is a small text file that can handle your redirects.

            I don't quite understand the other part, do all the domains share the same content? If so, you should use those canonical tags to indicate where the original content comes from...

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

              all four (www.example.com, example.com, www.example.ca and example.ca) have same content. I have focused all of my SEO efforts on the www.example.ca  version. It now ranks well and has good authority and PR but I am concerned about the other versions. I though of adding a canonical tag to the header of the pages on the website making the www.example.ca  version the canonical version and then doing 301 redirects  (Do I redirect the www.example.com to www.example.ca and then redirect the example.ca to the www.example.ca or is there more to this?). I can easily go the cname route with my server host but I had heard that a 301 is better. Does this added info add clarity to what I am asking? thanks very much for your answers and time til now

              gfiorelli1 1 Reply Last reply Reply Quote 0
              • gfiorelli1
                gfiorelli1 @casper434 last edited by

                301 all the other versions to the www.example.ca domain.

                I mean...

                1. redirect 301 the .com domain to the .ca domain (this will take care both of sub-domain and root domain)
                2. redirect 301 example.com to www.example.com via .htaccess

                If you don't do it you have a massive duplication issue... being www.example.ca stronger in link building, it is normal that the other (which are dupes) doesn't go well.

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

                  thanks very much. As suggested above I just went to google webmaster tools and did specify www.example.com and www.example.ca as the preferred domains. Do I still need to do 301 redirects as well or just a redirect from www.example.com to www.example.ca

                  gfiorelli1 1 Reply Last reply Reply Quote 0
                  • gfiorelli1
                    gfiorelli1 @casper434 last edited by

                    It always better to do a 301... also because exists also Bing as a search engine, and it does not know what you have done in GWT 🙂

                    1 Reply Last reply Reply Quote 2
                    • casper434
                      casper434 last edited by

                      Gianluca, thanks for your time. Before I ask my web host to do this one point of clarification. In step 2 you mention redirect of example.com to www.example.com   Since www.example.ca is my focus should this be example.ca to www.example.ca or is it correct as stated?

                      gfiorelli1 1 Reply Last reply Reply Quote 0
                      • gfiorelli1
                        gfiorelli1 @casper434 last edited by

                        Oh yes... it was a mistyping from my part, sorry

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • Should the canonical tag for the redirected pages be changed
                          AnahitG
                          AnahitG
                          0
                          3
                          31

                        • Should existing canonical tags be removed where a 301 redirect is the preferred option?
                          MVIreland
                          MVIreland
                          0
                          3
                          50

                        • 301 Redirect Url Within a Canonical Tag
                          MikeRoberts
                          MikeRoberts
                          0
                          2
                          70

                        • CNAME vs 301 redirect
                          Houdoe
                          Houdoe
                          0
                          11
                          27.3k

                        • Do I need both canonical meta tags AND 301 redirects?
                          Dr-Pete
                          Dr-Pete
                          0
                          4
                          1.1k

                        • Changing title tags, do we need 301 redirects
                          TextMarketing
                          TextMarketing
                          0
                          6
                          396

                        • I need to know more clearance on rel=canonical usage than 301 redirects ?
                          BlueprintMarketing
                          BlueprintMarketing
                          0
                          8
                          333

                        • Rel - canonical vs 301 redirect
                          PeterAlexLeigh
                          PeterAlexLeigh
                          0
                          4
                          910

                        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