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
-
Following urls should be add in disavow file or not
Hey Moz Friends, Should I include following spam link urls in disavow file or not? OR Will Google handle automatically? These type I have thousands urls. =>>>web-seek.org/the_worlds_most_visited_web_pages_42.html<<<=
White Hat / Black Hat SEO | | Rajesh.Prajapati
=>>>web-seek.net/the_worlds_most_visited_web_pages_42.html<<<=
=>>>websearching.net/the_worlds_most_visited_web_pages_42/
=>>>websearch.pl/the_worlds_most_visited_web_pages_42.html<<<=
=>>>web-search.net/the_worlds_most_visited_web_pages_42/
=>>>web-pages.org/the_worlds_most_visited_web_pages_42/
=>>>web-page.org/the_worlds_most_visited_web_pages_42.html<<<=
=>>>the-world.net/the_worlds_most_visited_web_pages_42.html<<<=
=>>>the-internet.tv/the_worlds_most_visited_web_pages_42.html<<<=
=>>>the-internet.in/the_worlds_most_visited_web_pages_42.html<<<=
=>>>the-globe.tv/the_worlds_most_visited_web_pages_42/
=>>>theglobe.sk/the_worlds_most_visited_web_pages_42.html<<<=
=>>>theglobe.ru/the_worlds_most_visited_web_pages_42.html<<<=
=>>>theglobe.pl/the_worlds_most_visited_web_pages_42.html<<<= Hope you will give any solution. Waiting for your positive response.0 -
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 -
How to add ">" category reveal in google search
When i look through google search and see some website categories their site this way. For example groupon www.groupon.com › Coupons › Browse Coupons by Store how do you do this for a website? for example wordpress. does this help with seo?
White Hat / Black Hat SEO | | andzon0 -
I Mistakenly uploaded Disavow File to Non WWW version of Webiste in Webmaster Tools...is this a Problem???
Hey guys and gals, I need some advice on this please. I recently had someone perform a negative S.E.O campaign on my site and I was inundated with 13,000 + spammy links pointing to my website and I had to perform a Disavow in Google Webmaster Tools but for some reason, it is showing that I uploaded the Disavow text file to the Non WWW version of the website but the WWW version of my website is the preferred domain and I have all NON WWW queries being 301 redirected to www.pcmedicsoncall.com My question is should I correct this and upload the Disavow text to the preferred domain in Google Webmaster Tools??? Please advise on how I should proceed with this situation.... Thank you. Cam
White Hat / Black Hat SEO | | CamMcArthur0 -
Do searchs bot understand SEF and non SEF url as the same ones ?
I've jsut realized that since almost for ever I use to code first my website using the non sef for internal linkings. It's very convenient as I'm sure that what ever will be the final url the link will always be good. ex: website.com/component1/id=1 Before releasing the website I use extensions to make the url user friendly according the choosen strategy. ex: website.com/component1/id=1 -> website.com/article1.html But I just wondered if google consider both urls as the same ones or if it consider just as a 301 redirection. What do you think is the best to do ?
White Hat / Black Hat SEO | | AymanH0 -
Is it ok to ask for a non reciprocal link
hey guys, got mini discussion question. With rapgenius.com getting penalized today, it raises some questions about linking. What they did is definitely not ok. A link scheme involving their own affiliate network is against Google guidelines for sure. So is it ok to ask for a non reciprocal link if there is no incentive involved and no money changes hands? ie. Someone writes an article related to your article topic, or they reference you without a link. Then uou email the webmaster requesting a link... They add it. Is this against the guidelines?
White Hat / Black Hat SEO | | Anti-Alex0 -
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 -
Drop in non-branded organic search April 1
I saw an intense drop in non-branded organic search for major pages on my site on April 1st this year. The homepage wasn't affected and it's not an annual thing. I've attached a screen shot showing the drop. I'm new to the company and recently learned that they had hired a pretty black hat company last year and I'm worried that this is Panda...although the timing seems wrong. Has anyone experienced panda effects between the two updates? I'd love to get some feedback!! 1ry2a.png
White Hat / Black Hat SEO | | CIEEwebTeam0