.htaccess and www - non www
-
Recently I have taken over a website and I made a pretty colossal mistake. The site was properly constructed via .htaccess to a www domain. Typically I roll without it and I made a bad assumption that the .htaccess was not previously set correctly because there were hundreds of fundamental mistakes.
After a couple of days I noticed the mistake but some of our new (non www) have picked up some solid links etc. So now I feel that I am in a nightmare of creating redirects etc. So should I switch back to WWW or not? Does it matter at this point?
-
Thanks for the reply. There is no duplicate data. I am very confident about this and I have properly constructed 301's to the correct Canonical link. I should have laid the question out a bit better. I am clearly defined through and through to the NON-WWW address but most all of the inbound links are to the WWW link and have a 301 to them. It appears as if I am missing the link juice from the links.
-
either way is ok, but not both.
at least when you have 301 redirect, people that grab your url will always grab the same version of it -
Thanks guys. I was pretty sure that is what I had to do but it is always so helpful in a predicament to get expert opinions.
Thanks again!!
-
Barry said it all.
I recommend you 301-redirect all pages without "www." to the fully qualified URLs containing "www.".
You'll get 90% of the linkjuice of existing backlinks, so just go for it. -
You almost certainly want to define it one way or the other at some point.
Yes, you'll lose a little bit of power through the redirects once you've done them, but at least afterwards you can be sure all the links are going to point to the right place.
Are you better having 90+% to one or 50% to each is the question
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
-
Duplicate Content Showing up on Moz Crawl | www. vs. no-www.
Hello Moz Community! I am new to SEO, Moz and this is my first question. My questions; I have a client that is getting flagged for Duplicate Content. He is getting flagged for having two domains that have the same content i.e. www.mysite.com & mysite.com. I read into this and set up a 301 redirect through my hosting site. I evaluated which site had a stronger Page Authority and had the weaker site redirect to the stronger site. However, I am still getting hit for Duplicate pages caused by the www.mysite.com & mysite.com being duplicates. How should I go about resolving this? Is this an example of a Canonical tag needed in the head of the HTML? Any direction is appreciated. Thank You. B/R Will H.
Technical SEO | | MarketingChimp100 -
Does the order of results from "site:www.example.com" tell us anything?
Does google rank in order of page authority with "site:www.example.com" or is it random? As most of the results of the first 6 pages for our site are internal search results pages ( eg www.example.com/search/product-results)
Technical SEO | | PaddyDisplays
The fact that search results are index at all is frustrating, they are not linked to internally or externally. The open site explorer does not have any back links for any of the search pages, and I checked the submitted site map and no search urls are submitted, so I don't know how google are finding the search urls. Also tested some of the search urls with aherf and no back links. But since its ranking the search pages ahead of the category(landing) pages with "site:" has me worried that not only are they indexing the urls, but they giving them higher page authority0 -
Wordpress & use of 'www' vs not for webmaster tools - explanation needed
I am having a hard time understanding the issue of canonization of site pages, specifically in regards to the 'www' or 'non-www' versions of a site. And specifically in regards to wordpress. I can see that it doesn't matter whether you type in 'www' or not in the url for a wordpress site, what is going on in the back end that allows this? When I link up to google webmaster tools, should i use www or not? thanks for any help d
Technical SEO | | dnaynay0 -
Why is our page not visible in Google-ranking? www.loseweight.com.
using Wordpress as platform. Using the URL gets into the site,- but seems to be non-existent for public... No comments at all, seems to be "invisible"?
Technical SEO | | gewi0 -
Smart phone shows both mobile & desktop version of www.innoviafilms.com
Good morning from 2 degrees C mostly cloudy wetherby UK, Image this situation... Ive got two versions of a website: A desktop version & a mobile version, here are their respective urls: Desk top: http://www.innoviafilms.com Mobile: http://www.innoviafilms.com/m/home.aspx With blackberry bold in hand I type in via google search "Innovia films" i click on the search snippet and it renders the desktop version. But when i type the url directly in my Blackberry bold 9700 it returns the mobile version 😞 This confuses me. Having read this: http://googlewebmastercentral.blogspot.com/2011/02/making-websites-mobile- friendly.html I thought the desktop version would render in smartphones which the balckberry bold is. So my question is... "Why does the the mobile version only appear when you type in www.innoviafilms.com on a blackberry (and iphone 4) and the desktop version appears only when you enter "Innovia films" via google search" Any insights welcome 🙂
Technical SEO | | Nightwing0 -
Non primary domain ranking higher in searches
Hey Guys, Hopefully I can explain this so that you can understand, let me know if you need me to clarify any particular points. I have a primary domain for my website, however someone has also pointed their domain at my server that has nothing to do with us or our website. Typing a keyword in a search engine will list our website as this has been crawled but it's listing the domain as their domain and not our primary. Is this because their domain has greater value then our primary? What's the best course of action to resolve the issue? The reason I ask is because the domain could potentially have a negative effect on business. If I setup hosting for this second domain and setup a redirect on it, all the traffic that is trying to reach us via respective search terms are then directed away from our site. I have been in contact with the domain administrator but they are yet to reply to my correspondence. Has anyone experienced something similar and come up with a good way to resolve it? Thanks guys, any help would be greatly appreciated.
Technical SEO | | digitalclubb0 -
Indexed non www. content
Google has indexed a lot of old non www.mysite.com contnet my page at mysite.com still answers queries, should I 301 every url on it? Google has indexed about 200 pages all erogenous 404's, old directories and dynamic content at mysite.com www.mysite.com has 12 pages listed that are all current. Is this affecting my rankings?
Technical SEO | | adamzski0 -
Should I 301 my non-www accesses to www accesses?
We have external links pointing to both mydomain.com and www.mydomain.com. I read this: http://www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect/ and wondered if I should add this to my .htaccess file: RewriteCond %{HTTP_HOST} ^mydomain.com
Technical SEO | | scanlin
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L] so that the link juice all flows to the www version of the site? Any reason not to do it?0