Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8543745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:22:51+00:00 2026-06-11T12:22:51+00:00

I have a website where I am splitting my traffic into two user groups

  • 0

I have a website where I am splitting my traffic into two user groups “learners” and “instructors”. I hold their user group in a session variable and direct them to the relevant section of their site.

I am having problems with search engines not indexing the site due to them not having the user_type cookie set. Is there a way I can allow the search engine crawler access to both sections of the site (at the moment it gets stuck in an loop from the user_type selection page to the homepage).

I would also ideally like to be able to allow the crawler access to the member-only resources as there will be content that learner drivers will be able to access that I would prefer was only accessible once logged in.

The code checking the session variable user_type is below and is called on every page (hence why nothing is getting crawled)

    if($check_exists==TRUE) {
        $this->session->set_userdata('referrer', current_url());
        if (strlen($this->session->userdata('user_type'))==0) {
            redirect('/user_type/');
        }
    } else if($check_exists==FALSE) {
        if (strlen($this->session->userdata('user_type'))>0) {
            redirect('/home/');
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:22:52+00:00Added an answer on June 11, 2026 at 12:22 pm

    The concept you are using to handle both user types (learner and teacher) is wrong from a SEO perspective. In most cases, you should never have to different content sharing a single URL.

    In your case, http://www.road2driving.co.uk/home redirects to http://www.road2driving.co.uk/user_type if no cookie is found. A web crawler will ignore your cookie, and will be caught in a loop. If you want to index both pages, you need to drop the cookie based navigation and create 2 separate sections of your site.

    http://www.road2driving.co.uk/home should be your current http://www.road2driving.co.uk/user_type page. Meaning that /home will display 2 links for the learner and teacher sections.

    Then create a learn section and a teach section, using a sub-folder for example. You will have:

    • http://www.road2driving.co.uk/home
    • http://www.road2driving.co.uk/learn/
    • http://www.road2driving.co.uk/teach/

    That way all sections of your site be accessible by a crawler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have website where users can login with their Facebook account. I am using
I have a client requesting an animated/panned image be added to their website. Basically,
We have an ecommerce website that displays groups of products by category using a
I have a small website sitting in a sub-domain of my main site. I'm
I have website, usually all looks fine but sometimes one div is on the
I have website on the server, which is not precompiled (with source code, so
I have website based on Umbraco 5. I have installed contact form plugin (http://cultivjupitercontact.codeplex.com/).
i have website of application which sells applications online.on the home page i want
So basically I have website that has names of cities that can be checked
I'm trying to play on iPhone's Safari so i can have website menu bar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.