Combine multiple FilesMatch (specific files)
Combine multiple FilesMatch (specific files) How can I combine multiple FilesMatch for specific files ? All the examples I found are for combining file extensions In my case I only want to allow 3 files : /img/logo.png /sound/true.p3 /sound/false.mp3 I tested that but it's not clean : <FilesMatch logo.png> Allow from all Satisfy Any </FilesMatch> <FilesMatch true.mp3> Allow from all Satisfy Any </FilesMatch> <FilesMatch false.mp3> Allow from all Satisfy Any </FilesMatch> 1 Answer 1 You can use <filesMatch> with regex pattern to test multiple files <filesMatch> <filesMatch "(logo.png|true.p3|test.jpg)"> Allow from all Satisfy Any </filesMatch> Documentation of the FilesMatch directive is here. FilesMatch Thank you, Can I add the file tree ? Like : " imglogo.png" ? ...