logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Force .htaccess rules to apply to subdirectories
Author
Dareros



Joined: 14 Jun 2014
Posts: 5

PostPosted: Sun 15 Jun '14 5:10    Post subject: Force .htaccess rules to apply to subdirectories Reply with quote

Hi;
I have some instructions written in the .htaccess of root directory for my website. So how to force those rules to apply to all sub directories even if those sub directories have .htaccess that overwrite the rules of the mother .htaccess on the root directory ? For example the root .htaccess deny access to all *.log files, so how to force that rule even if in some subdirectories there is some .htaccess files that allow access of *.log files.

Thank you
Back to top
Anaksunaman



Joined: 19 Dec 2013
Posts: 54

PostPosted: Sun 15 Jun '14 16:55    Post subject: Reply with quote

You can use

Code:
 RewriteOptions inherit 


to inherit the rewrite rules of the parent directory.

[url]
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteoptions[/url]
Back to top


Reply to topic   Topic: Force .htaccess rules to apply to subdirectories View previous topic :: View next topic
Post new topic   Forum Index -> Apache