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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:43:25+00:00 2026-05-26T16:43:25+00:00

AFAIK by default all .htaccess files in all directories leading to the file requested

  • 0

AFAIK by default all .htaccess files in all directories leading to the file requested are parsed, i.e. in this setup:

  • DOC_ROOT = /usr/local/www/data
  • AllowOverride is set to All in the above directory

if a file at /dir1/dir2/dir3/file is requested, all folders from / down are being checked for .htaccess. If the file is found it is parsed and then the execution is continued based on combined contents of the .htaccess files.

So here’s my setup:

  • DOC_ROOT = /usr/local/www/data – that’s where all static and php files are kept.
  • there’s a .htaccess in the DOC_ROOT that rewrites all but some requests to index.php.
  • there’s a /Python/root.wsgi in the DOC_ROOT and in httpd.conf there’s this: WSGIScriptAlias /apps /usr/local/www/data/Python/root.wsgi

As you can imagine I do not want .htaccess to be used at all for the /Python folder, but it is. How do I prevent it?

I tried setting this in httpd.conf, but it doesn’t do the job:

<Directory "/usr/local/www/apache22/data/Python">
    AllowOverride None
</Directory>

If I do put .htaccess in the Python folder with RewriteEngine off that seem to do the job, but I don’t want to be forced to put such a file in each of the subfolders I don’t want to root .htaccess to be used.

  • 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-26T16:43:26+00:00Added an answer on May 26, 2026 at 4:43 pm

    There isn’t a way to disable inheritance, sadly. An easier way could be to create a single folder in your web root for “everything else”, and in the .htaccess in there, put the RewriteEngine off statement.

    I think you can do something with RewriteCond to disable this. If you want all subfolders to just be accessible (and rewrite anything that doesn’t match an existing subfolder), you can use RewriteCond !-d.

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

Sidebar

Related Questions

I have a Python extension to the Nautilus file browser (AFAIK this runs exclusively
This question is about the public key that every .NET assembly has AFAIK (looking
AFAIK, any declaration of a variable or a function in file scope has external
AFAIK, the working paradigm of Windows Performance Counter is like this: When various programs
I have MySQL 5 with this defined: CREATE DATABASE foo DEFAULT CHARACTER SET =
AFAIK, extern keyword should be used for declaration and no value can be associated
AFAIK, for pointers/references static_cast, if a class definition is not visible to compiler at
Afaik, you can change/manipulate browser settings in Mozilla/Netscape browsers. For Instance netscape.security.PrivilegeManager.enablePrivilege('someprivilege'); Of course
AFAIK when reducing an array we can only output once variable at the end
Possible Duplicate: JavaScript: var functionName = function() {} vs function functionName() {} AFAIK, there

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.