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

  • SEARCH
  • Home
  • 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 8552337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:24:09+00:00 2026-06-11T14:24:09+00:00

We have 2 admin pages. one is for admin and another is for branches.

  • 0

We have 2 admin pages. one is for admin and another is for branches. We have 16 branches in our company. I have put 16 branches as different folder. One is for admin section. If I login http://www.xxx.com it asks login page. When admin enters it should go to admin page only. And if any branches try to login http://www.xxx.com, den it should redirect to their respective branches folders. Please tell me how i do dat in php/mysql.

  • 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-11T14:24:10+00:00Added an answer on June 11, 2026 at 2:24 pm

    You add a new row in your mysql table called for example login_type and for every user you add his login type:

    admin    - login_type = admin_folder
    branch 1 - login_type = branch1_folder
    

    So every time an user authenticates you redirect him to his default folder stored in login_type. And of course you check if he didn’t landed in a different folder.

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

Sidebar

Related Questions

I have two login pages, one for user and other for admin. In order
My folder structure is like - root admin create_page.php pages my_page1.php my_page2.php I have
I'm working on an app in CodeIgniter, and I want to have admin pages
I have folders and pages /admin/add/index.php, /admin/edit/index.php & /admin/view/index.php which all are requiring page
I have an admin controller located in controllers/admin/admin_controller.rb I also have a pages controller
I have many fan pages that I admin in Facebook and I made a
I have few pages in following structure. --Project |---WebContect |----Admin/ * |----Author/ * |----Readonly/
I have a problem. I ma moving a system from one server to another
I have an ASP.NET Website. I want to restrict the Admin Folder to only
I am running a website locally. I have one main folder, which contains all

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.