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. White Hat / Black Hat SEO
    4. Add a non www binding.

    Add a non www binding.

    White Hat / Black Hat SEO
    3 2 149
    • 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.
    • Tz_Seo
      Tz_Seo last edited by

      Hello,

      I will ask something that is probably been asked before, but I cannot find the answer, so excuse me.

      I have a website, www.example.com, and I want to add a binding to my server so when someone also hits example.com (without www in front) to be landed normally to my site.

      The question is if this will affect the seo of the site in any way - duplicate content etc?

      Thank you!

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

        Hello ! You must first choose which version of your website you prefer: www.domain.com or domain.com

        Once that is done, go to Google Webmaster Tools and create an account for each version, one for the www and one for the domain.com

        Once created, tell GWT which is your favourite !

        Then, you need to make a permanent rediretion 301 through your .htacess as follows to take out the www.:

        RewriteEngine On 
        

        RewriteCond %{HTTP_HOST} ^www.midominio.com [NC]

        RewriteRule ^(.*)$ http://midominio.com/$1 [L,R=301]
        
        **Or Viceversa:**
        
        

        RewriteEngine On

        RewriteCond %{HTTP_HOST} ^midominio.com [NC]
        
        

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

        If you don't do this and both www and non www versions appear, then you have Duplicate Content !

        1 Reply Last reply Reply Quote 3
        • Tz_Seo
          Tz_Seo last edited by

          Thank you, this was helpful!!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Why to add a product id in the url
            paupastorlopez
            paupastorlopez
            0
            2
            195

          • How to add more quality backlink with moz tools or any good option
            Host1
            Host1
            0
            8
            404

          • Do Wikipedia links add value?
            billhartzer
            billhartzer
            0
            5
            7.6k

          • Should I add the canonical URL/homepage (http://www.domain.com) in the secured version of my home URL (https://www.domain.com)?
            esiow2013
            esiow2013
            0
            3
            165

          • How to force www. prefix in all URLs using htaccess?
            esiow2013
            esiow2013
            0
            3
            573

          • Where is the rule here that force "www." in URLs?
            crackingmedia
            crackingmedia
            0
            4
            177

          • Moving from www.domain.net to domain.com?
            KeriMorgret
            KeriMorgret
            0
            14
            186

          • 301 redirect from an unwanted non-affiliated domain
            dohertyjf
            dohertyjf
            0
            3
            706

          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