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. Www.mydomain.tld same as mydomain.tld - unexpected results

    Www.mydomain.tld same as mydomain.tld - unexpected results

    Moz Tools
    4 4 834
    • 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.
    • PandyLegend
      PandyLegend last edited by

      Hi

      I set up a campaign to monitor a website and chose to track the root domain, however the report showed every single page on my website was duplicated with itself when seen as www.mydomain.tld as opposed to just  mydomain.tld.

      I deleted the campaign and set it up to monitor only the www.mydomain.tld as I don't use any other subdomains, however in Bing results the website is listed without the www and so is not recognised in the ranking checker.

      How can I set it up so that seomoz recognises the pages as the same either with or without the www?

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

        To handle this you need to setup a permanent redirect from mydomain.tld to www.mydomain.tld (or vice versa).

        If your site is running Apache you can use a .htaccess file do handle this.

        Simply create a file called .htaccess (make sure when you save the file you are not saving it as .txt as that with append the .txt to the file like so: .htaccess.txt which you do not want; save as 'All Files' or whatever), and save it to your public_html directory, or whatever your web root is.

        Add the following:

        RewriteEngine On

        RewriteBase /

        RewriteCond %{HTTP_HOST} !^www.mydomain.tld$ [NC]

        RewriteRule ^(.*)$ http://www.mydomain.tld/$1 [L,R=301]

        That should now effectively keep your site from being broken into 2.

        Google also recommends you create two(2) Profiles within Google Webmaster Tools, one for the www. and one for the non www. where you can then specify under "Site Configuration > Settings > Preferred Domain" which method you have chosen as per your .htaccess file.

        Hope that answers your question.

        RobertFisher 1 Reply Last reply Reply Quote 2
        • DanHill
          DanHill last edited by

          Hi Pandy

          Set your htaccess file to redirect all non www variants to the www ones (or vice versa depending on which you'd prefer).  That should prevent the seoMoz 'bot' from reaching the 'wrong' ones(and also make sure search engines don't too.

          On a side note - if Bing has your pages cached without the www and you want to go with the www variants then I suggest you first do a 301 redirect of all the pages and the domain itself so you don't lose out on any traffic and links built etc

          Edit : going to leave my reply even though it seems THB beat me too it(only just though!)

          1 Reply Last reply Reply Quote 1
          • RobertFisher
            RobertFisher @THB last edited by

            Excellent response THB. We do both for all sites.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Before Migration/after(www/non-www/http/https) - Good concentration needed :p
              Dreamgame2016
              Dreamgame2016
              0
              6
              398

            • Using Keyword Tool Results
              sergeystefoglo
              sergeystefoglo
              0
              5
              111

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

            • Open Site Explorer produces better results for www.50campfires.com than 50campfires.com
              davidangotti
              davidangotti
              0
              2
              119

            • Open Site Explorer results vs. Google Webmaster Tools results
              Copstead
              Copstead
              0
              2
              535

            • Root domain www subdomain only
              Keszi
              Keszi
              0
              2
              611

            • Www, non www, 301 redirects, Google webmaster tools & SeomozPro
              KeriMorgret
              KeriMorgret
              0
              5
              762

            • Localized Search Results
              AlanMosley
              AlanMosley
              0
              2
              573

            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