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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:37:03+00:00 2026-05-24T17:37:03+00:00

structure in root is: ROOT\_public ROOT\_blog ROOT\_about when something comes to domain.com/blog it will

  • 0

structure in root is:

  ROOT\_public
  ROOT\_blog
  ROOT\_about

when something comes to domain.com/blog it will read root_blog (first)
when something comes to domain.com/maps it will read root_maps (second)
when comes everything else, it will read root_public folder .. (third)

third is doesnt work!

why?

RewriteEngine on 

# rewrite to trailing shash in domain/about and domain/maps 
RewriteRule ^(about|blog|docs)$ /$1/ [R]

# rewrite domain.com/about/something to /_about/something 
RewriteRule ^(about|blog|docs)/(.*)$ /_$1/$2/ 

# rewrite anything that doesn't start about/ or maps/ to _public 
RewriteCond %{REQUEST_URI} !^/(about|maps|docs)/
RewriteRule ^(.*)$ _public/$1

i havent idea, why its doesnt work. please help. thank you!

  • 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-24T17:37:04+00:00Added an answer on May 24, 2026 at 5:37 pm

    /somethingelse will be directed to _public/somethingelse
    _public/somethingelse will in turn be directed to _public/_public/somethingelse
    _public/_public/somethingelse …etc.

    You need to stop rewriting if already rewritten.

    RewriteRule ^_ - [L]
    RewriteCond %{REQUEST_URI} !^/(about|maps|docs)/
    RewriteRule ^(.*)$ _public/$1
    

    The added line will match anything starting with “_” and stop applying any rules below it.

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

Sidebar

Related Questions

Consider the following directory structure: ROOT ------ images ............... logo.png ------ includes ............... vars.php
Table structure goes something like this: Table: Purchasers Columns: id | organization | city
I have such singleton structure: // Hpp class Root : public boost::noncopyable { public:
I have a singleton with a following structure: // Hpp class Root : public
This is my directory structure: -st.ambulance ---public_html ---resources My document root is public_html .
I have something that looks like the following document structure: public class Document {
Given this structure: <root> <user> <userName>user1</userName> <userImageLocation>/user1.png</userImageLocation> </user> <user> <userName>user2</userName> </user> </root> public class
If my URL is http://www.server.com/myapp/stuff/to/see and my directory structure on disk is htdocs/myapp/* ,
First, I'll describe my table structure. I have table, with 2 columns (ID and
I want to create a structure like: <root> <items> <myns:a s=a/> <b s=a/> </items>

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.