301 or Rel=canonical
-
Should I use a 301 redirect for redirect mywebsite.com to www.mywebsite.com or use a rel=canonical??
Thanks!
-
We use a rewrite rule to do this (301) because we want to keep our analytics easier to manage.
So for example if I have blog.example.com/, www.example.com/, and example.com/ all tracked under the same analytics setup, and I am not taking the hostname into account then all of my "/" pageviews are pooled together and I don't know if they are blog or www pageviews.
So once I tell analytics to add the hostname to pageviews they come across as blog.example.com/ and www.example.com/, but now I will see www.example.com/ and example.com/ as two different pages in my content reports.
So then I need to have the 301 so my data is consolidated correctly.
This is why I suggest using 301s where you can. This can get tricky if you have a ton of folders and index pages for those folders, but you should at least be doing this for your home page as it will make your reporting life MUCH easier in the long run.
Especially if you aren't tracking across subdomains now, but will want to in the future. If you set it up this way now it will save you some headaches.
Hope that helps!
-
If you can do a 301, go for the 301. As far as PageRank is concerned, there's not much of a difference. See Matt Cutts on exactly this topic.
cheers
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
-
Rel=canonical and redirect on same page
Hi Guys, Am I going slightly mad but why would you want to have a redirect and a canonical redirecting back to the same page. For Instance https://handletrade.co.uk/pull-handles/pull-handles-zcs-range/d'-pull-handle-19mm-dia.-19-x-150mm-ss/?tag=Dia.&page=2 and in the source code:- <link href="<a class="attribute-value">https://handletrade.co.uk/d'-pull-handle-19mm-dia.-19-x-150mm-ss/</a>" rel="<a class="attribute-value">canonical</a>" /> Perfect! exactly what it is intended to do. But then this page is 301 redirected tohttps://handletrade.co.uk/pull-handles/pull-handles-zcs-range/d'-pull-handle-19mm-dia.-19-x-150mm-ss/ The site is built in open cart and I think it's the SEO plugin that needs tweaking. Could this cause poor SERP visibility? This is happening across the whole site. Surely the canonical should just point to the proper page and then there is no need for an additional bounce.
Technical SEO | | nezona1 -
Rel canonical confusion
I have 172 pages on my site coming up as having a rel canoncial tag This is not something I've added myself so I think it must either be part of wordpress or part of a plug in I'm using . ALL in One SEO? They have come up as blue warning so not sure if it's a big deal, or what i need to do to fix it. www.katetooncopywriter.com.au Thanks Kate
Technical SEO | | ToonyWoony0 -
Will rel canonical tags remove previously indexed URLs?
Hello, 7 days ago, we implemented canonical tags to resolve duplicate content issues that had been caused by URL parameters. These "duplicate content" had already been indexed. Now that the URLs have rel canonical tags in place, will Google automatically remove from its index the other URLs with the URL parameters? I ask because we have been tracking the approximate number of URLs indexed by doing a site: search in Google, and we have barely noticed a decrease in URLs indexed. Thanks.
Technical SEO | | yacpro130 -
301 permanent re-direct
My site can be accessed either with or without the www. Does this affect my search positions and do error 301-redirect cause any ill effects?
Technical SEO | | fireman0 -
301 redirects
At the moment it's possible to access the home page of my website via two different urls, with and without www. and you've told me that this can be resolved with Canonicalization and a 301 redirect. Do I do this with my web hosting package or in my html pages? If I can't do it with my web host (1&1) then is there an idiot's guide of how to do it yourself? I've also got both the domain vamospaella.co.uk and vamospaella.com. Is it better to have one of these redirecting to the other for UK traffic (at the moment .co.uk redirects to .com) Thanks
Technical SEO | | melissa10 -
301 redirect Issues
my clients site is www.greenbayharvest.co.uk When you enter that URL it redirects to www.greenbayharvest.co.uk/shop, dont ask why, thats the way they set it up and thats what im stuck with. So, how do i resolve the 301 issue here. we want all things to point to www.greenbayharvest.co.uk, in terms of SEO but does the fact that there is a redirect going to /shop make this an issue? we appear to have: www.greenbayharvest.co.uk/shop www.greenbayharvest.co.uk greenbayharvest.co.uk greenbayharvest.co.uk/shop all these URL's go to the same same page so what is the best way to correct this? thanks for any help on this Lee
Technical SEO | | IPIM0 -
301 & backlinks
Apologies if my question sounds like a school Maths lesson 😉 If you have 2 sites: Site 1) is linked to by sites A,B & C Site 2) is linked to by sites X,Y & Z You then 301 redirect site 2 to site 1. Most of the juice from site 2 (obtained from links X,Y,Z) should be passed over to site 1. But what if site 2 is linked to by the same sites A,B,C as site 1 instead of X,Y,Z. Since both sites have exactly the same links will the same, less, or any weight be passed over by the 301 redirect? Many thanks.
Technical SEO | | martyc1 -
Getting rid of duplicate content with rel=canonical
This may sound like a stupid question, however it's important that I get this 100% straight. A new client has nearly 6k duplicate page titles / descriptions. To cut a long story short, this is mostly the same page (or rather a set of pages), however every time Google visits these pages they get a different URL. Hence the astronomical number of duplicate page titles and descriptions. Now the easiest way to fix this looks like canonical linking. However, I want to be absolutely 100% sure that Google will then recognise that there is no duplicate content on the site. Ideally I'd like to 301 but the developers say this isn't possible, so I'm really hoping the canonical will do the job. Thanks.
Technical SEO | | RiceMedia0