Timeline for Deny access to subfolder and file with .htaccess
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 6, 2015 at 15:56 | history | edited | Drav Sloan | CC BY-SA 3.0 | added 15 characters in body |
| Aug 6, 2015 at 15:54 | comment | added | Drav Sloan | You need the .htaccess file inside foo/foo2 (as they are not recursively applied), hence the suggestion to do it more cleanly inside the apache config. | |
| Aug 6, 2015 at 15:52 | comment | added | stecog | Yes i know, but i need make an unique .htaccess file, i resolved partially with RewriteRule ^foo(/|$) - [L,NC] , now i have a Forbidden to directory but i can view the files inside directories foo/foo2/file.xml (example) | |
| Aug 6, 2015 at 15:48 | comment | added | Drav Sloan | updated answer. | |
| Aug 6, 2015 at 15:48 | history | edited | Drav Sloan | CC BY-SA 3.0 | added 252 characters in body |
| Aug 6, 2015 at 15:34 | comment | added | stecog | To the title i have specified "whit .htaccess" | |
| Aug 6, 2015 at 15:33 | comment | added | Drav Sloan | It has to be inside your main apache config. | |
| Aug 6, 2015 at 15:30 | comment | added | stecog | DirectoryMatch not allowed here | |
| Aug 6, 2015 at 15:28 | comment | added | Drav Sloan | What is your apache error log showing? | |
| Aug 6, 2015 at 15:20 | comment | added | stecog | Yes, i need put into .htaccess file, i have AllowOverride All in apache configuration | |
| Aug 6, 2015 at 15:17 | comment | added | Drav Sloan | Are you doing this via the .htaccess file? In which case you will require AllowOverride Limit set on that directory by your main apache configuration. | |
| Aug 6, 2015 at 15:12 | comment | added | stecog | If i use DirectoryMatch like you have described, i have Internal Server Error, the folder are in the same directory oh .htacces (/) | |
| Aug 6, 2015 at 14:46 | history | answered | Drav Sloan | CC BY-SA 3.0 |