Deal with links that need login to view
-
Hi All,
Deal with links that need login to view
We have member names in the site in many places and when clicked it takes the user to the login page
As just logged in members can view the details
The redirection type is 302 and Moz Campaign says we have many and need to make them 301
What is the best way as we have a drupal website
Thanks
-
Exactly my point.
You show the "http://www.domain.com/login?return=the-actual-linked-page" to non-logged in users and bots. while you show "http://www.domain.com/the-actual-linked-page" to logged in users. By doing that you don't have any 3XX redirects.
-
When the user is logged in they wont see such links
Only when a non member clicks they go to the login page and Bots scan as non member only
When a user clicks and logs in and he is redirected to the page automatically he is intended to reach after login
-
I don't think that's an issue, and I certainly won't set them as 301 as those are permanently moved (which means that the browser may not fetch the page again but instead send them to the login page even if they are logged in). 302s in that case are fine.
However, you can consider another approach such as: http://www.domain.com/login?return=the-actual-linked-page (for not logged in users). That way you will avoid any 3XX while only show the definitive link to the logged in user.
Hope that helps!
-
You need to nofollow noindex all those links. Your user login sections are private and will not be ranked anyway, dont need the spiders getting in there.
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
-
Crawler issues on subdomain - Need resolving?
Hey Guys, I'm fairly new to the world of SEO and have a ton of crawler issues with a friends website I'm doing some work on. After Moz did a site crawl I'm getting loads of errors (Total of 100+ for critical crawler, content and meta data). Most of these are due to broken social links on a subdomain - so my question is do I need to resolve all of the errors even if they are on a sub-domain? Will it affect the primary website? Thanks, Jack
Technical SEO | | Jack11660 -
Sitemap links
Hi, I´m running a sitemap using pro-sitemaps and I find several pages that shouldn´t be listed. How do I find how are these pages being generated? Can´t find the links the robot is following to get to those pages..
Technical SEO | | ceci27100 -
Updating inbound links vs. 301 redirecting the page they link to
Hi everyone, I'm preparing myself for a website redesign and finding conflicting information about inbound links and 301 redirects. If I have a URL (we'll say website.com/website) that is linked to by outside sources, should I get those outside sources to update their links when I change the URL to website.com/webpage? Or is it just as effective from a link juice perspective to simply 301 redirect the old page to the new page? Are there any other implications to this choice that I may want to consider? Thanks!
Technical SEO | | Liggins0 -
Link juice and 301 redirects
Hi, I have a page with a lot of links going to it. I want to change the name of the page (thereby changing the URL). I can do a 301 redirect, but does a 301 send the "link juice" to the new page? The page in question is www.aerlawgroup.com/dui.html, and I want to change it to www.aerlawgroup.com/dui-lawyer.html. Thank you in advance for your time.
Technical SEO | | mrodriguez14400 -
Affiliate links
I have a wordpress blog and was wondering the best seo practice for doing affiliate link redirects? Peter
Technical SEO | | PeterM220 -
Link Building - Quality,Quantity, or both?
Hello SEOMozzers, As I embark on yet another client's link campaign I ask myself where best to spend resources(time and money) on link building. Typically I provide a mix of blogroll links, article syndication contextual links, social media posting and high PR one way links. I would like to know if anyone here finds one form of link to carry weight over the rest. I have my suspicion and my own theory on it but I would like to know what the moz concensus is.
Technical SEO | | TheGrid0 -
Linking to related business?
If your working with a local business, is it a good idea to reach out to similar businesses in other states and ask for a link? Example: I own a paint shop in Minnesota, and I reach out to a paint shop in California to see if we want to link to each others site to help our SEO. Because we aren’t in competition with each other wouldn’t this help us both?
Technical SEO | | marker-3115280 -
Why would you remove a canonical link?
Currently, my client's blog makes a duplicate page every time someone comments on a post. The previous SEO consultant told the developer to not put a canonical link directing it to the main blog post. Did taking out the canonical link result in these duplicate pages? My question is why would she recommend this action? Is it best to now add in the canonical link in or should we implement a 301 redirect or insert a index: no follow? Would adding a canonical link keep duplicate pages from happening in the future?
Technical SEO | | Scratch_MM0