Should you 301, 302, or rel=canonical private pages?
-
What should you do with private 'logged in' pages from a seo perspective? They're not visible to crawlers and shouldn't be indexed, so what is best practice? Believe it or not, we have found quite a few back links to private pages and want to get the ranking benefit from them without them being indexed.
Eg: http://twiends.com/settings (Only logged in user can see the page)
302 them: We can redirect users/crawlers temporarily, but I believe this is not ideal from a seo perspective? Do we lose the link juice to this page?
301 them: We can do a permanent redirect with a short cache time. We preserve most link juice now, but we probably mess up the users browser. Users trying to reach a private page while logged out may have issues reaching it after logged in.
**Serve another page with rel=canonical tag: **We could serve back the home page without changing the URL. We use a canonical tag to tell the crawlers that it's a duplicate of the home page. We keep most of the link juice, and the browser is unaffected. Yes, a user might share that different URL now, but its unlikely.
We've been doing 302's up until now, now we're testing the third option. How do others solve this problem? Is there a problem with it?
Any advice appreciated.
-
You should 302 redirect non-authenticated users to http://twiends.com/login.
This is a better user experience, and you avoid the potential authentication issues with the 301. It's also not really correct or useful to make it a 301 redirect: users aren't being 'permanently' redirected to the login page, and there's not much utility in forcing link juice to be passed from /settings to /login either.
So requests to /settings should either show that user's settings or 302 redirect to /login. Don't duplicate the home page content and rely on a canonical tag. Your domain (and domain authority) are still going to benefit, and I just don't think there's enough of a case to sculpt the flow of link juice in this way. As Andreas has pointed out, the link juice isn't the most important consideration here; it's better to focus on user experience. Your homepage's ability to rank for any given term is unlikely to be affected by the decision to 'rel=canonical' all private pages to the home page.
-
He said I should use the canonical as what it's made for - he said I shouldn't use it as a redirect - I asked if I should/could use a canonical as redirect and he said: it could happen that google starts to think about it: is it a canonical? should it be a 301? Something like that, and he said I should use redirect Was a german Hangout in September/October.
He didn't say anything about link juice - I just thought it should be that way.
-
Hi Andreas, are you sure..? According to this article on Moz:
https://moz.com/learn/seo/canonicalization
"The rel=canonical tag passes the same amount of link juice (ranking power) as a 301 redirect"
Did John Mueller say that the tag does not pass link juice? Do you have a link to the hangout recording so that I can check it out..?
Thanks
-
A canonical is (guess it was John Mueller who said it) not give you any linkjuice.
He told me in a Webmaster Hangout to use Canonical only for that what it is made for (not for redirects in that hangout-case). Your idea isn't the perfect canonical example.I would simply redirect everybody (who is not logged in) to a login/sign page. That would be the best thing for the users (UX). You send them to the homepage, wich is not perfect for ux. I would ignore the linkjuice in that case.
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
-
Missing canonical tag error - office pages
Moz is throwing an error for our office pages (10 office pages in the format /office/location-1; /office/location-2 etc) but the content is different. How should we handle the canonical tag? Thanks
On-Page Optimization | | AztekMedia0 -
Alot of 302 Redirects, what to do?
I'm currently auditing my companies website, and we encountered thousands of 302 redirects. The 302 pages are products page, which is a question and answer module at the bottom of each products page. What best practice should I do to get rid of the 302 redirects? add those pages to the .robots.txt? Or do individually and add a no index? This would help boost our rankings up correct?
On-Page Optimization | | petmkt0 -
How long should I leave an existing web page up after a 301 redirect?
I've been reading through a few of blog posts here on moz and can't seem to find the answer to these two questions: How long should I leave an existing page up after a 301 redirect? The page old page is no longer needed but has pretty high page authority. If I take the old page down—the one that I'm redirecting from—immediately after I set up the 301 redirect, will link juice still be passed to the new page? My second question is, right now, on my index.html page I have both a 301 redirect and a rel canonical tag in the head. They were both put in place to redirect and pass link equity respectively. I did this a couple years back after someone recommended that I do both just to be safe, but from what I've gathered reading the articles here on moz is that your supposed to pick one or the other depending on whether or not it's permanent. Should I remove the rel conanical tag or would it be better to just leave it be?
On-Page Optimization | | ScottMcPherson0 -
I'm using Canonical URL but still receiving message - Appropriate Use of Rel Canonical
Hello, I checked my site and it looks like everything is setup correctly for canonical url but I keep getting the message that it's not. Am I doing something wrong? SORRY I FIGURED IT OUT! THANK YOU! HOW DO I DELETE THIS?
On-Page Optimization | | seohlp440 -
Can you canonical from one domain page to a different domain page
We are a boating site and have our main site with all it's products. We have an engine section within our main site. But we also have an outside domain, specific to a certain manufacturer of engines. So we want our customers to still find the engine information for this manufacturer within our main site, as well as find the manufacturer targeted engine site in the SERPS. My question is this: Can I canonical those pages within our main site to pages on the outside domain? Or does are canonicals to be used only within the same domain? Thanks,
On-Page Optimization | | tdawson090 -
How to add canonical tag
Hi, I read through many of the forum questions dealing with the overly dynamic URLS and I think I understand. Please let me know if I know what I am talking about: If SEO moz is saying I have 20 pages (mostly search and home/index pages) with overly dynamic urls, I would go to the that particular page and add the following code between the head tag: This code would cause Google to go to this page instead of the following duplicate index pages: 1. http://www.about-sports-collectibles.com/index.php?pcsid=0a83aa7119cf3d80a1d018634ec4ec94&p 2. http://www.about-sports-collectibles.com/index.php?pcsid=18b220fc62628b013a51c6f26209df50&p There are a total of about 8 of these index pages. The problem is that I can't figure out where I would access each of these duplicate pages to add the canonical tag. There is only one home page with coding. As far as the search pages are concerned, I would not want Google to follow those pages would I? If that is the case, what would be the best code to add between the tags? For instance here are a couple of the overly-dynamic URL pages for the search pages: 1. http://www.about-sports-collectibles.com/index.php?p=catalog&mode=search&search_in=all&search_str= 2. http://www.about-sports-collectibles.com/index.php?pcsid=50354d5791e627dc2be6c86528154a5e&p=catalog&mode=search I hope I am not overwhelming anyone with my questions. I really am trying to get a handle on how Ll this stuff works. Thanks so much the help. Don
On-Page Optimization | | ge01734001 -
Rel Canonical - Could someone please help confirm something?
Morning Mozzers, I'm looking at a site (www.zitan.co.uk) and making a few recommendations for SEO, one of the things I've spotted is something weird with rel canonical. It looks (to me) as if they've got almost every single page set with this tag: rel="canonical" href="http://www.zitan.co.uk" /> I'm 99% certain that this means that every page on the site (that has this tag) is pointing all link juice / authority back to the homepage? If someone could please check and just confirm that, I'd really appreciate it. Thanks in advance, James
On-Page Optimization | | JamesMio0 -
Missing meta descriptions on indexed pages, portfolio, tags, author and archive pages. I am using SEO all in one, any advice?
I am having a few problems that I can't seem to work out.....I am fairly new to this and can't seem to work out the following: Any help would be greatly appreciated 🙂 1. I am missing alot of meta description tags. I have installed "All in One SEO" but there seems to be no options to add meta descriptions in portfolio posts. I have also written meta descriptions for 'tags' and whilst I can see them in WP they don't seem to be activated. 2. The blog has pages indexed by WP- called Part 2 (/page/2), Part 3 (/page/3) etc. How do I solve this issue of meta descriptions and indexed pages? 3. There is also a page for myself, the author, that has multiple indexes for all the blog posts I have written, and I can't edit these archives to add meta descriptions. This also applies to the month archives for the blog. 4. Also, SEOmoz tells me that I have too many links on my blog page (also indexed) and their consequent tags. This also applies to the author pages (myself ). How do I fix this? Thanks for your help 🙂 Regards Nadia
On-Page Optimization | | PHDAustralia680