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. Redirect root domain to www

    Redirect root domain to www

    Technical SEO Issues
    6 2 424
    • 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.
    • SeaDrive
      SeaDrive last edited by

      I've been having issues with my keyword rankings with MOZ and this is what David at M0Z asked me to do below.   Does anyone have a solution to this?  I'm not 100% sure what to do.  Does it hurt ranking to have a domain at the root or not?  Can I 301 redirect a whole site or do I have to do individual pages.

      "Your campaign is looking for rankings for the www version of the campaign but the URL resolves as a root domain. This would explain the discrepancy. Since there is no re-direct between the two, you can have brickmarkers.com 301 re-direct to www.site.com  which will prevent you from re-creating your campaign to track the root domain. Once the re-direct is in place it will take a while for Google to show the www version in the results in which your campaign rankings will be accurate."

      Thanks

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

        Both yes and no. It doesn't directly hurt your ranking to use your root domain for web, but it can affect your rankings to use both www. and the root domain. Typically what most people do is to redirect either www. or the root domain to the other, with the most common being redirecting the root domain with a HTTP 301 to the www.

        In your case, this means that everyone visiting brickmarkers.com would be redirected to www.brickmarkers.com. This is helpful from a SEO perspective, as the "link juice" will be passed from brickmarkers.com to www.brickmarkers.com, consolidating all of your ranking power to one domain, instead of splitting it up over two.

        The problem described in the quotation you included is however that you are tracking rankings for www.brickmarkers.com, but that it may sometimes be brickmarkers.com that shows up in the serp, and therefore the tracking isn't working correctly (or that's at least how I interpret it).

        You can redirect the entire domain, you don't need to redirect the entire site. You can use this page on MOZ to read more about the 301 redirect and how to implement it:

        http://moz.com/learn/seo/redirection

        SeaDrive 1 Reply Last reply Reply Quote 0
        • SeaDrive
          SeaDrive @JSTRANDELL last edited by

          Thanks Anders,

          Thank you for the info.

          Is this the correct code I  be using should use?

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

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

            I do not use Apache that much unfortunately (prefer Nginx), but assuming you are using Apache, you'd probably want to add something like this:

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

            SeaDrive 1 Reply Last reply Reply Quote 1
            • SeaDrive
              SeaDrive @JSTRANDELL last edited by

              Anders,

              That worked perfectly, thanks,

              Eric

              JSTRANDELL 1 Reply Last reply Reply Quote 0
              • JSTRANDELL
                JSTRANDELL @SeaDrive last edited by

                Hi Eric,

                I'm glad I could help! Feel free to send me a PM if you need further help.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • SSL, www issue. Should we buy WWW license or just add redirect from www to non-www site?
                  Ryan_V
                  Ryan_V
                  0
                  8
                  141

                • I have a sub domain that has live content on it but the root domain redirects to another URL. I know this is not great but what are the implications?
                  mjsikorsky
                  mjsikorsky
                  0
                  3
                  96

                • Linking Root Domains after Site-Wide Redirect
                  JaneCopland
                  JaneCopland
                  0
                  4
                  125

                • Link building to ROOT domain OR to WWW.?
                  SEOisSEO
                  SEOisSEO
                  0
                  7
                  167

                • Redirect non www. domain to WWW. domain for established website?
                  malecce
                  malecce
                  0
                  2
                  207

                • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
                  Room214
                  Room214
                  0
                  7
                  1.1k

                • Code to redirect subdomain to root domain
                  RyanKent
                  RyanKent
                  0
                  5
                  971

                • Accidently did a 301 redirect on root domain and lost domain keyword position
                  Blargh123
                  Blargh123
                  0
                  4
                  995

                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