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 7647785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:32:59+00:00 2026-05-31T10:32:59+00:00

Ok so i have an admin folder in a site that i am working

  • 0

Ok so i have an admin folder in a site that i am working and what i need is when someone enters

http://admin.teamfocususa.org/

in their browser then they get redirected to the admin folder

here is my htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^teamfocususa.org [NC]
RewriteRule ^(.*)$ http://www.teamfocususa.org$1 [L,R=301]

RedirectMatch 301 ^/admin/(.*)$ http://admin.teamfocususa.org/$1

Redirect http://admin.teamfocususa.org /admin

this part is not working

Redirect http://admin.teamfocususa.org /admin

any ideas on how to make this part work …when i visit http://admin.teamfocususa.org is the home page and not the admin folder as i thought….FYI this is a shared host and I dont have access to the vhost to fix this the way i know

  • 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-05-31T10:33:00+00:00Added an answer on May 31, 2026 at 10:33 am

    Try adding a RewriteRule matching on requests to / of admin.teamfocususa.org.

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^teamfocususa\.org^ [NC]
    RewriteRule ^(.*)$ http://www.teamfocususa.org$1 [L,R=301]
    
    RewriteCond %{HTTP_HOST} ^(www\.)?teamfocususa\.org [NC]
    RewriteRule ^admin(.*) http://admin.teamfocususa.org/$1 [L,R=301]
    
    # Not needed
    #RedirectMatch 301 ^/admin/(.*)$ http://admin.teamfocususa.org/$1
    
    # Added = requests to http://admin.teamfocususa.org/
    # Redirected into http://admin.teamfocususa.org/admin
    # --OOPS fixed RewriteCond - was typo RewriteRule
    RewriteCond %{HTTP_HOST} ^admin\.teamfocususa\.org$ [NC]
    RewriteRule ^$ admin/ [L,R=301]
    
    # To hide /admin on admin.teamfocususa.org
    # use this instead of the above group...
    RewriteCond %{HTTP_HOST} ^admin\.teamfocususa\.org$ [NC]
    RewriteRule ^$ admin/ [L]
    
    
    # Not needed
    #Redirect http://admin.teamfocususa.org /admin
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Inside of my MVC application, I have a sub-folder named Admin that was Converted
i'm currently working on a wordpress site that needs to have the option to
I have a site that requires the ability for a logged in admin to
I have folder home/admin. In this folder there is index.php. When i access to
I have a folder named repository in my admin folders. This folder holds 2
I'm working on an app in CodeIgniter, and I want to have admin pages
I have an admin site set up as a virtual applcation inside of another
I have an admin form that lets users create entities that require an image.
I have a website I've built in django that I'm trying to get working
I have an asp.net 4.0 web site that generates email alerts based on several

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.