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
-
Non e commerce goals
Hi Id like to set up some non ecommerce goals for google analytics, As the sites I’m dealing with are non commercial. Can anyone give me any recommendations?
White Hat / Black Hat SEO | | APLNZ0 -
My site www.sriindustries.com dropped to back page penguin 2.1
My website penguin 2.1 dropped back to page 5 and beyond, can you help me to come out from this ? My head is breaking, also I would like to know how to be on top for local business search (maps)
White Hat / Black Hat SEO | | synchronyinfo0 -
Has anyone used this? www.linkdetox.com/
Has anyone used this? www.linkdetox.com/ Any opinions about it?
White Hat / Black Hat SEO | | Llanero0 -
Moving from www.domain.net to domain.com?
We're thinking about moving our domain from www.domain.net to domain.com as we just acquired the dot com domain. www.domain.net receives roughly 20million pageviews per month and gets about 90% of it's traffic from search engines. What is best to do in this situation? Should we start using .com instead of .net? 301 redirecting traffic to the .com from .net? Should we drop the www in front?
White Hat / Black Hat SEO | | mschianoyo0 -
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 -
Ways to find private - non-indexed forums in a niche
I would wondering if there were ways to find non-indexed content in private forums/discussion boards. Is there a scalable 'foot-print' that suggests the forum has a private section?
White Hat / Black Hat SEO | | ilyaelbert0 -
What on-page/site optimization techniques can I utilize to improve this site (http://www.paradisus.com/)?
I use a Search Engine Spider Simulator to analyze the homepage and I think my client is using black hat tactics such as cloaking. Am I right? Any recommendations on to improve the top navigation under Resorts pull down. Each of the 6 resorts listed are all part of the Paradisus brand, but each resort has their own sub domain.
White Hat / Black Hat SEO | | Melia0