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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:00:57+00:00 2026-06-09T02:00:57+00:00

I have a site called mydomain.com . I am crating ‘sites’ folder in it

  • 0

I have a site called mydomain.com . I am crating ‘sites’ folder in it where I will be creating many sites for my users . I want for example for a user ‘Jack’ create a folder called ‘jack’ so now they can access their page via mydomain.com/sites/jack .
So my question is how to make my users go mydomain.com/jack but still see the content of the above url and also make ‘mydomain.com/sites/jack’ sorts of urls forbidden .
Thanks very much for your time !!!

  • 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-09T02:01:00+00:00Added an answer on June 9, 2026 at 2:01 am

    Try adding this to the htaccess file in your document root:

    RewriteEngine On
    
    # check to see if this user's site exists
    RewriteCond %{DOCUMENT_ROOT}/sites%{REQUEST_URI} -f [OR]
    RewriteCond %{DOCUMENT_ROOT}/sites%{REQUEST_URI} -d
    
    # Rewrite into the /sites/ directory
    RewriteRule !^/?sites/ /sites%{REQUEST_URI} [L]
    
    
    # Redirect requests made directly to /sites/
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /sites/
    RewriteRule ^/?sites/(.*)$ /$1 [R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a recruitment site and have a folder called /CV/ where I
For say i have a Site called example.com on which iframe is embedded of
If you have a site called http://username.github.com and a project called projectname , do
I have a site with some static pages that lie in à folder called
I have a site, lets say it's called www.supersite.com. Now, I have a site
I have the site collection rootweb called Main Site. I have many subsites called
I have added a plugin called scrollpaper to a site I'm working on. The
So I have a file called cache, which stores traffic analysis of a site,
I want to have site wide default settings for all jQuery validation uses on
I have a site that i want to redirect all requests accept for 1

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.