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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:11:55+00:00 2026-05-10T20:11:55+00:00

I have an htaccess file that uses mod_rewrite to redirect /controller to /index.php?controller=%controller% Like

  • 0

I have an htaccess file that uses mod_rewrite to redirect /controller to /index.php?controller=%controller%

Like this:

# Various rewrite rules. <IfModule mod_rewrite.c>   RewriteEngine on    # Rewrite current-style URLs of the form 'index.php?controller=x&action=y'.   RewriteCond %{REQUEST_FILENAME} !-f   RewriteCond %{REQUEST_FILENAME} !-d   RewriteRule ^(.*)$ index.php?controller=$1 [L,QSA] </IfModule> 

Now, what I need to be able to do is make ONE of the controllers work with HTTP Authentication. I’m not asking if this is the best way to do things, I’m simply asking how to do it.

Example:

http://www.example.com/ - It requires no auth http://www.example.com/secret - requires auth 
  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T20:11:55+00:00Added an answer on May 10, 2026 at 8:11 pm
    <Location /secret>   AuthName localhost   AuthType Basic   AuthUserFile <file>   Require valid-user </Location> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rewrite in my htaccess file that removes index.php from the url
I have an .htaccess file that's using several rewrite rules. These rules aren't working
I have an .htaccess file that redirects all URLs to the index.php file with
Im trying to rewrite www.mysite.com/admin/index.php?page=pagename to www.mysite.com/admin/pagename In my .htaccess file (located in www.mysite.com/admin)
I have a working .htaccess file that changes .php to .html. How can I
I have created an .htaccess files that will prevent anyone from accessing a file
I have this .htaccess file in WordPress. It's located at /public_html/ (web root). I
I have an .htaccess file with following content: AddHandler x-httpd-php5 .php For some reason,
In my .htaccess file I have defined following rule, RewriteRule t/([^.]+)/$ /videos/tag.php?tag=$1 [QSA] The
In my .htaccess file I have a set of rules as follows: RewriteRule ^dir/page1$

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.