I have a folder 'includes' on my apache server where I keep some php and other automation documents. The folder contains the .htaccess file below.
<Limit POST PUT>
order deny,allow
deny from all
allow from 127.0.0.1
</Limit>
Options -Indexes
This restricts some access to the files in this folder and its subfolders. And works fine.
How can I have custom read access settings in one of the subfolders?
- Example 1: One folder
includes/exampleone
I want to disallow Get requests. - Example 2: A second folder
includes/exampletwo
I want to allow all, for dev/test purposes.
Is it as simple as putting a new htaccess file in the subfolders? I tried that for example 2 and used the below
<Limit POST PUT GET>
order deny,allow
deny from none
allow from all
</Limit>
Options -Indexes
But got a page missing error navigating to the directory or a .php file within it.