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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:05:15+00:00 2026-06-06T06:05:15+00:00

In my root directory I have a htaccess file which is caching all sort

  • 0

In my root directory I have a htaccess file which is caching all sort of file types. However in one subdirectory I would like to disable php caching. There I have setup the same htaccess file as in the root with php caching set to 0, but it does not take effect.

Now, I have looked into numerous discussions, some say parent htaccess takes precedence, while other claim child htaccess does.

It seems to me the former is true. The question is which command can I use in child’s htaccess to override parent’s htaccess?

Tnx

  • 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-06T06:05:20+00:00Added an answer on June 6, 2026 at 6:05 am

    There are no answers after a fair amount of time so I’m gonna close this question. For my case I applied a workaround solution.

    After caching files like this:

    <FilesMatch "\.(html|htm|xml|txt|xsl|css|js|php)$">
      Header set Cache-Control "max-age=2592000, must-revalidate"
    </FilesMatch>
    

    I have disabled caching for certain files like this:

    <Files myfile.php>
      Header set Cache-Control "max-age=0, must-revalidate"
    </Files>
    

    Maybe it will be of some use to somebody.

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

Sidebar

Related Questions

I have codeigniter installed at the root directory, and would like to have a
I have a .htaccess file set up to define specific MIME types in directory
I have a Zend Framework application with a .htaccess file in the root directory,
I have directory structure like so: |-- ROOT |-- Project1 | |-- application |
I have a jar file named umar.jar in /root/umar/bin directory. I have a shell
I have the following .htaccess file in the root of my application: RewriteEngine On
I have a htaccess file in a sub folder like so: /subfolder/.htaccess In the
I have files in /directory/subdirectory and I'd like it to appear to users that
I have a .htaccess file - looks something like this: RewriteEngine On <FilesMatch ^.*\.php.*$>
I have a ZendFramework project that I would like to run inside a subdirectory.

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.