How to configure .htaccess to ignore specific subfolders?
Answer Posted / Sanjay Singh
To ignore specific subfolders in Drupal's .htaccess file, you can add the following lines: n
# Ignore the 'files' foldernt<FilesMatch ^(?:update|cron| stats).php> nttdeny from allnt</FilesMatch>nt<DirectoryMatch ^(/sites/all/[a-zA-Z0-9]+/files)>nttOptions -Indexes +FollowSymLinks +MultiViewsnt</DirectoryMatch>
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers