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. Should I 301 my non-www accesses to www accesses?

    Should I 301 my non-www accesses to www accesses?

    Technical SEO Issues
    2 2 824
    • 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.
    • scanlin
      scanlin last edited by

      We have external links pointing to both mydomain.com and www.mydomain.com. I read this: http://www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect/ and wondered if I should add this to my .htaccess file:

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

      so that the link juice all flows to the www version of the site? Any reason not to do it?

      1 Reply Last reply Reply Quote 0
      • krissy-cca
        krissy-cca last edited by

        Mike,

        This is best practice on all sites. Forgetting about the links for a minute; you have two versions of the same page (in search engines eyes) so the first step is to do exactly what you're asking and consolidate into one.

        The next step is to ensure your URLs end with a trailing slash because if you have www.url.com and www.url.com/  you again have two different versions.

        DD

        1 Reply Last reply Reply Quote 2
        • 1 / 1
        • First post
          Last post
        • Worth redirecting non-www to www due to higher page authority with www?
          GastonRiera
          GastonRiera
          0
          4
          276

        • Which to redirect to, www or non-www?
          Perfect007
          Perfect007
          0
          3
          169

        • Redirecting non-www to www
          Christy-Correll
          Christy-Correll
          0
          6
          466

        • Www vs non-www which is better?
          ReviveMedia
          ReviveMedia
          0
          12
          31.7k

        • Www v.s non www
          theLotter
          theLotter
          0
          7
          749

        • Www vs non-www
          kylesuss
          kylesuss
          0
          6
          808

        • Www vs non www
          Marcus_Miller
          Marcus_Miller
          0
          5
          1.2k

        • .htaccess and www - non www
          mikeusry
          mikeusry
          0
          7
          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