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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:20:25+00:00 2026-06-16T05:20:25+00:00

I have a directory called private. You can access the index.php file by using

  • 0

I have a directory called “private”. You can access the index.php file by using the url

http://www.example.com/private/

The index.php looks for the “page” parameter to require_once() the requested page.

http://www.example.com/private/?page=archive.

I wanted to make a rewrite rule to return the same query when user types:

http://www.example.com/private/archive.

I tried this rule but it doesn’t seem to work.

RewriteEngine On
RewriteRule ^private/([a-z]+)/?$ private/?page=$1 [L]

The .htaccess doesn’t want to work if I put it inside the “private” folder or the site’s root. Isn’t it suppose to be in the “private” folder instead of the root? My rewrite module is on.

  • 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-16T05:20:26+00:00Added an answer on June 16, 2026 at 5:20 am

    Forgot to add “RewriteBase”

    RewriteEngine On
    RewriteBase /private/
    
    RewriteRule ^([a-z]+)/?$ ?page=$1 [L]
    

    There’s no need to write “private/” in the rewrite rule since the rewrite base has been set to it. The .htaccess file should be inside the private folder of course.

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

Sidebar

Related Questions

i have a directory called testDir and it contains 1000 file, some of them
Note: Using Monotouch. I have a directory called Images where I have all my
(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}), As you can see, I have a directory called media under
I have a file called middle.config that is deployed in the same directory as
I have a file called foobar (without .py extension). In the same directory I
I have a duplicated configuration file under WEB-INF directory, called configDEV.properties and configPRO.properties (one
In my root .htaccess file I have the following Wordpress code: RewriteRule ^index\.php$ -
I have a directory called public_html/hammer/ (my CMS). I want to use the image
I have a directory called cron, inside my app directory. In the cron directory,
I have tons of data in directory called reports. While doing git merge with

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.