Redirect root domain to www
-
I've been having issues with my keyword rankings with MOZ and this is what David at M0Z asked me to do below. Does anyone have a solution to this? I'm not 100% sure what to do. Does it hurt ranking to have a domain at the root or not? Can I 301 redirect a whole site or do I have to do individual pages.
"Your campaign is looking for rankings for the www version of the campaign but the URL resolves as a root domain. This would explain the discrepancy. Since there is no re-direct between the two, you can have brickmarkers.com 301 re-direct to www.site.com which will prevent you from re-creating your campaign to track the root domain. Once the re-direct is in place it will take a while for Google to show the www version in the results in which your campaign rankings will be accurate."
Thanks
-
Hi Eric,
I'm glad I could help! Feel free to send me a PM if you need further help.
-
Anders,
That worked perfectly, thanks,
Eric
-
I do not use Apache that much unfortunately (prefer Nginx), but assuming you are using Apache, you'd probably want to add something like this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^brickmarkers.com
RewriteRule (.*) http://www.brickmarkers.com/$1 [R=301,L] -
Thanks Anders,
Thank you for the info.
Is this the correct code I be using should use?
RewriteCond %{HTTP_HOST} !^www.seomoz.org [NC]
RewriteRule (.*) http://www.seomoz.org/$1 [L,R=301] -
Both yes and no. It doesn't directly hurt your ranking to use your root domain for web, but it can affect your rankings to use both www. and the root domain. Typically what most people do is to redirect either www. or the root domain to the other, with the most common being redirecting the root domain with a HTTP 301 to the www.
In your case, this means that everyone visiting brickmarkers.com would be redirected to www.brickmarkers.com. This is helpful from a SEO perspective, as the "link juice" will be passed from brickmarkers.com to www.brickmarkers.com, consolidating all of your ranking power to one domain, instead of splitting it up over two.
The problem described in the quotation you included is however that you are tracking rankings for www.brickmarkers.com, but that it may sometimes be brickmarkers.com that shows up in the serp, and therefore the tracking isn't working correctly (or that's at least how I interpret it).
You can redirect the entire domain, you don't need to redirect the entire site. You can use this page on MOZ to read more about the 301 redirect and how to implement it:
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
-
Should I be concerned about Google indexing an old domain if the listings redirect to the new domain?
I noticed this about Moz's old domain SEOMoz.org. If the URLs from the old domain are redirecting, is there any reason to be concerned about an old domain still appearing to be indexed by Google? See here: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=site%3Aseomoz.org Links to seomoz.org are listed, but if you click them they redirect to moz.com. Is this anything to be concerned about or is everything operating as expected?
Technical SEO | | 352inc0 -
PR 6 Redirect to a brand new domain name
Hello all, I checked a lot fo blog posts about 301 redirects but wanted to double check with you all. I got an email from a potential client who want to do a re-brand of his business and decided to buy a new domain name.
Technical SEO | | artdivision
His old domain name is PR 6 and his new domain obviously PR 0. I tried to check his old web site but it is too late as he has redirected everything to the new one. What it seems he has done though is redirect everything from his old domain (whether it is a sub category link, a blog link or a specific product) to the new domain index page. So for example if someone linked to his old product page www.xxxxxx.com/product/product_1 or his blog post www.xxxxxx.com/blog/11-21-2013/xxxxxxxxx.com in both cases it will take em to the new domain index page www.xxxxxx.com as he has not created product pages, blogs or anything than just a 4 page web site. I know that ideally he should have created same folders/subfolders, get his blog posts up and set up proper re-directs to the new pages but as I was not in charge of this process nor know if he has kept the old web site yet I wanted to know how bad is this for SEO and if his old PR 6 will pass value to his new domain. Yiannis0 -
Searching on root domain words = ranking on > page 10 in SERP
Hello, Our website wingmancondoms.com (a new condom brand) is not ranking in Google on the keywords "wingman condom", and I don't know why. In Yahoo and Bing everything is allright. I saw on this forum that it is maybe best to change my language URL's to wingmancondoms.com/nl /de and /fr instead of a direct URL like http://www.wingmancondoms.com/wingman-kondome (german translation). But is this our problem or are there more problems. Google is indexing our page well, no errors etc. Any other possibilities?
Technical SEO | | jogo0 -
What is the advantage of using sub domains instead of pages on the root domain?
Have a look at this example http://bannerad.designcrowd.com/ For each category of design, they have a landing page on the sub domain. Wouldn't it be better to have them as part of the same domain? What is the strategy behind using sub domains?
Technical SEO | | designquotes0 -
New domain
Hi, I have a domain with no keywords on it, and I´ve been using it for years. Now I bought another domain with the keyword on it. I whant to work on seo for the second domain, with the keyword. What is the better way to work this out? 301? Duplicate de site? redirect in another way?
Technical SEO | | mgfarte0 -
Www vs non www and understanding opensite
Hi Guys, New guy here with some questions regarding the difference between www and non www. I am helping with a site at the moment and gradually working my way through bits and learning all the time. I was watching one of the seomoz videos and it brought my attention back to www vs non www. I understand that google will treat these as two seperate sites but wanted to check what the stats are telling me. I was under the impression that www.mydummysite.com was getting most links etc as this is what I have always used. However when I used Opensite explorer it told me something different as follows: www.mydummysite.com 32/100 29/100 5 16 mydummysite.com 32/100 29/100 2 1,500 Am i correct in saying that i should be adding a redirect from www.mydummysite.com to mydummysite.com ???? I am thinking that this is telling me that I am potentially missing out on 1,500 links to my site but it could mean I am missing out on just 16. Eitherway I guess its something I should fix right? Do I just redirect that page or would all pages beneith it such as mydummysite.com/news also need redirect??? Can i use Canonical Rel links for this now? Thanks for taking the time to read and reply! 🙂
Technical SEO | | wedmonds0 -
Switch domain from one account to another at domain registrar
We need to move our domain from one account to another at our domain registrar (which is Moniker). Both the "from" account and "to" account will be at Moniker. The "from" account currently has privacy settings enabled and we'd also put these in place for the "to" account. Has anyone done this and see any impact on SEO? Is there any big or common mistakes that I should be aware of? Thanks all!
Technical SEO | | evoNick0 -
301 Redirects
Hello, I have a problem with my website. I have a page on my website http://www.ensorbuilding.com/page.php/aboutus but if i type in www.ensorbuilding.com/page.php/aboutus/f8e45e9d9df6140bb5a7ff1173e8d828 or www.ensorbuilding.com/page.php/aboutus/0f0eea5e9ab0a3e8d91fad8fc0d3ce9c it still displays the about us page. Google is seeing this as duplicate content so what I would want to do is 301 redirect anything after www.ensorbuilding.com/page.php/aboutus . How could I implement a 301 redirect in this way?
Technical SEO | | danielmckay70