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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:00:32+00:00 2026-05-13T15:00:32+00:00

I forgot how to do that and I am stuck. I have a site

  • 0

I forgot how to do that and I am stuck.
I have a site say http://www.example.com and another folder http://www.example.com/docs/
I want when some one visits the http://www.example.com/ he will be redirected secretly to http://www.example.com/docs/ but still see in the URL http://www.example.com

And even if the user types http://www.example.com/docs/ I want him to see http://www.example.com in the url
Simply the user will not know that there is a docs folder.

At the same time I want a user who visits a.example.com and b.example.com can visit them with no problem and will be prompted to enter a username and password.
Any help ?

  • 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-13T15:00:32+00:00Added an answer on May 13, 2026 at 3:00 pm

    Try these rules:

    RewriteCond %{THE_REQUEST} ^[A-Z]+\ /docs/
    RewriteRule ^docs/(.*) /$1 [L,R=301]
    RewriteRule !^docs/ docs%{REQUEST_URI}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails app that is working fine except for one thing. When
How does one compares to the other? I have an embedded application that if
can anyone help me? I have some reflection code that i have written and
Sorry guys! i am so into the code! that i forgot to put the
I forgot the name of that application tool. anyone here remembers it? It let's
EDIT: Forgot to remind the reader that I remembered to set templateSettings as follows:
Does the standard guarantee that order of equal elements will not change (eh, forgot
I'm trying to implement method Find that searches the database. I forgot to mention
EDIT Sorry I forgot the most important part here. Each key can have more
I stumbled on a site yesterday and forgot to bookmark the url. I'm stumped

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.