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. Moz Tools
    4. If I have set up my www as a cname, do I still need to add a redirect?

    If I have set up my www as a cname, do I still need to add a redirect?

    Moz Tools
    4 3 52
    • 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.
    • Dandelion
      Dandelion last edited by

      Hello,

      I am trying to minimize my redirect chains that have been popping up in my Moz crawl issues. So I'd like to get clear on some best practices. I have a few clients that are getting their first redesign in a while. We are moving into Wordpress from good ole .html files. So I've installed a redirection plug in to create 301 redirects for those .html versions of the pages.

      But apparently I am already redirecting from www to non-www. I have the www set up as a CNAME going to the IP address - is that counting as the redirection? Sometimes though, the www is set up by making it an A record. Is one way better than the other?

      Finally, I'm forcing https for all my new sites now. Is whatever the host does to "force" https also counting as a redirect and contributing to my chain?

      Any advice will be appreciated!

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

        \The redirects for the old .html structure should go to the preferred  domain, ie: https://nonwww.com/most-relevant-new-location

        CNAME is not a redirect and just points the user to the right server and I don't think switching is going to have any impact on what you're seeing. Some services like Cloudflare prefer you CNAME your www and non-www to the server to help protect the server IP.

        The switch to https is an important one and you want to be sure that you take every step to make that smooth transition, ultimately getting https pages ranked instead of your http versions, and then users will be hitting your preferred URL scheme.

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

          I'd like to confirm that a CNAME is indeed not a redirect and that Steve is absolutely right. You will need to set up a proper 301 redirect to go from one to the other.

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

            Thank you!

            Yep - I redirect the .html files to the https domain to as specific a page as possible. Its good to know that I don't have to factor in the CNAME or A records into the issue.

            It sounds like I am doing the right things from what you say - yet I do have some redirect chain warnings in my Moz crawl.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Should we set up redirects for all deleted TAGS?
              paints-n-design
              paints-n-design
              0
              2
              36

            • Before Migration/after(www/non-www/http/https) - Good concentration needed :p
              Dreamgame2016
              Dreamgame2016
              0
              6
              398

            • Need Help with www and non-www redirect
              opstart
              opstart
              0
              5
              1.2k

            • Add to cart redirect using 302
              Everett
              Everett
              0
              3
              495

            • Is www.domain.com/page the same url as www.domain.com/page/ for Google? (extra slash at end of url)
              danatanseo
              danatanseo
              0
              5
              205

            • Redirected pages still sending response code 200
              imoney
              imoney
              0
              5
              409

            • Why do crawlers still track meta keywords if it is not needed in my site?
              jernest002
              jernest002
              0
              6
              395

            • 301 redirect
              Jeff1
              Jeff1
              0
              5
              1.1k

            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