Add a non www binding.
-
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!
-
Thank you, this was helpful!!
-
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 !
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Nuisance visitors to non active page. What's going on?
Hi Guys, for the past several months, I get high volume of searches on a non-existing page /h/9249823.html. These searches come from all over the world from different domains and have a zero session duration. They are automatically forwarded to my home page. The source re Google Analytics is 12-reasons-for-seo.com. The full referrer is 12.reasons-for-seo.com/seo2php. Any idea what is provoking this activity? Any chance it's screwing with my legitimate search results or rankings?
White Hat / Black Hat SEO | | Lysarden0 -
Why to add a product id in the url
Hello ! shop.com/en/2628-buy-key-origin-the-sims-4-seasons/ Why will people use a product id in the link? Is there any advantage like better ranking or else?
White Hat / Black Hat SEO | | kh-priyam0 -
Is there any SEO impact to using "www" vs. non-"www" preferred domain name?
My client has been using "www" with his domain and before I took over, has used it in marketing etc. I typically don't use "www" in my wordpress setup, and set non-www as the preferred domain in google analytics and google search console. Does it make any difference? Especially when www resolves to non-www? I appreciate some guidance with this.
White Hat / Black Hat SEO | | chill9860 -
Sure, but what about non-keyword rich anchor text links?
Could spammy non-keyword rich anchor text liks help your website rank? Of course, there's been a lot of discussion around Google's update of its link scheme. Specifically, they target press releases with do-follow links on keyword-rich anchor text and "Large-scale article marketing or guest posting campaigns with keyword-rich anchor text links". Well, that leaves the question unanswered, what if you're doing these spammy linking techniques, but on non-keyword rich anchor text, such as "click here", "find information", and "click here". Will you still get smacked down by Google then? Given that links on non-keyword anchor text can still help increase domain authority, it seems like Google left a door open here for large scale publication of a certain class of spammy links that can still assist rank, no? Also, in answering, please distinguish between best practice, and effective. For instance, purchasing links isn't a good practice, but it can still be an effective technique. While spammy links on non-keyword rich anchor text is certainly not a good practice, is it nonetheless effective?
White Hat / Black Hat SEO | | ExploreConsulting0 -
Has anyone used this? www.linkdetox.com/
Has anyone used this? www.linkdetox.com/ Any opinions about it?
White Hat / Black Hat SEO | | Llanero0 -
Branded Anchor Text, Exact vs. Non-exact Match Domain
Hello, For NLPCA.com, when you search for "NLP California" in Google,the letters "nlp" are bolded in the SERP URL and so is "ca". See here. This is because "ca" is an abbreviation for "California" Thus, this is not an exact match domain but it is close. What should our branded anchor text be? I want to change the anchor text profile to 98% branded anchor text. The 3 names our company goes by are NLP California NLP Institute of California NLP and Coaching Institute Let me know if we should not use one or more of these names for branded anchor text.
White Hat / Black Hat SEO | | BobGW0 -
If I redirect a penalized domain to a non-penalized domain, will the new domain still be penalized?
If I redirect a penalized domain to a non-penalized domain, will the new domain still be penalized?
White Hat / Black Hat SEO | | MangoMan160 -
Google Penguin for non-English queries?
Does anybody know if non-English queries were also 'hit' by the Google Penguin update? All Penguin horror stories out there are from sites focusing on English queries, and in some (Dutch) industries I'm monitoring, some sites with spammy backlink profiles are still ranking.
White Hat / Black Hat SEO | | RBenedict0