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
-
Is this campaign of spammy links to non-existent pages damaging my site?
My site is built in Wordpress. Somebody has built spammy pharma links to hundreds of non-existent pages. I don't know whether this was inspired by malice or an attempt to inject spammy content. Many of the non-existent pages have the suffix .pptx. These now all return 403s. Example: https://www.101holidays.co.uk/tazalis-10mg.pptx A smaller number of spammy links point to regular non-existent URLs (not ending in .pptx). These are given 302s by Wordpress to my homepage. I've disavowed all domains linking to these URLs. I have not had a manual action or seen a dramatic fall in Google rankings or traffic. The campaign of spammy links appears to be historical and not ongoing. Questions: 1. Do you think these links could be damaging search performance? If so, what can be done? Disavowing each linking domain would be a huge task. 2. Is 403 the best response? Would 404 be better? 3. Any other thoughts or suggestions? Thank you for taking the time to read and consider this question. Mark
White Hat / Black Hat SEO | | MarkHodson0 -
Strange referral site: www.cyberonlineclicking.com would like some insights from the community
Hello Mozzers! I've noticed that our site has been receiving a significant amount of referral traffic from a rather suspect looking site: www.cyberonlineclicking.com Can anyone shed any light on this beast. Stopped receiving traffic around 11th November, but was getting 20K sessions over a 4 week period. The traffic was of poor quality, but would be good to know how or why they were linking to my site (fejobs dot com). Looks very suspicious. Thanks Justin
White Hat / Black Hat SEO | | Eteach_Marketing0 -
Do Wikipedia links add value?
Do Wikipedia pages/links add any value to your website and SEO? We are not an advertiser or seller of products, whereas we help people with planning so say I add an external link from an established page relevant to our service, will we get penalised by Wikipedia? Or is it worth setting up a page about our company, similar to say - the BBC with an external link? Thanks!
White Hat / Black Hat SEO | | Jaybeamer0 -
Obscene anchor text linking to non-existent pages on my site
My website seems to be rapidly accumulating links from what seem to be reputable websites and which are going to non-existent pages on my website. The anchor text of many of these links is obscene. Here is the URL of one of the pages that is linking to me. I contacted the originating site a couple of weeks ago and they are looking into it but I've not heard back. I'm guessing the originating sites have been hacked. Should I be concerned? Why are they linking to pages on my site that don't exist? http://www.radicalartistsagency.com/htmlarea/language/0content_abo_utus.html Looking at the page source of this page reveals the hidden links.
White Hat / Black Hat SEO | | MartinDS0 -
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 -
Getting Back Links When I Cannot Add Outbound Links to My Site
I have a collection of websites that I do not control in terms of content or page creation/editing. As a result, I have no way to add links to outside sites on any existing or new pages. Given this, how can I go about finding and requesting other sites link back to our sites/pages if I cannot offer them a link to their site in return? I know that content is a link driver, but I do not control the content, so I cannot develop new content to help drive links. I appreciate any help/advice any experts can provide.
White Hat / Black Hat SEO | | dsinger0 -
Should we add our site to Google Webmaster Tools
Hello, Should we add our site nlpca(dot)com to google webmaster tools? Everything's very white hat but we do have a section on each of our 4 sites for "Our other Sites" that link to the others. It's been there for many years. We're looking for clues as to why we've dropped in rank Thanks!
White Hat / Black Hat SEO | | BobGW0