KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to disable access to any file OR directory, whose name begins with a DOT. I came up with the following, but it disables access to files/directories beginning with DOT only if they are directly in the Document root. <Files ~ "^\.|\/\."> Order allow,deny Deny from all </Files> With this, http://my_server.com/.svn/entries --> Permission denied http://my_server.com/abcd/.svn/entries --> Accessible, should be disabled Whats the proper regex to achieve this?
Tags (comma-separated)
Save Edits
Cancel