devknob Posted November 23, 2011 Share Posted November 23, 2011 Kinda unable to try this right now but I cant find an example of using <FilesMatch> with multiple files without wildcards anywhere. Would something like this work? <FilesMatch "index.php" "config.php"> ...stuff </FilesMatch> or maybe <FilesMatch (index.php|config.php)> ...stuff </FilesMatch> Link to comment https://forums.phpfreaks.com/topic/251689-using-for-multiple-files/ Share on other sites More sharing options...
devknob Posted November 23, 2011 Author Share Posted November 23, 2011 Also, can you nest <FilesMatch> inside <IfModule> ? Like <IfModule mod_expires.c> <FilesMatch something> ..stuff </FilesMatch> </IfModule> Link to comment https://forums.phpfreaks.com/topic/251689-using-for-multiple-files/#findComment-1290765 Share on other sites More sharing options...
devknob Posted November 23, 2011 Author Share Posted November 23, 2011 Ive found out that the nesting <IfModule> and <FilesMatch> works fine... fyi Link to comment https://forums.phpfreaks.com/topic/251689-using-for-multiple-files/#findComment-1290769 Share on other sites More sharing options...
devknob Posted November 28, 2011 Author Share Posted November 28, 2011 Is there a way to do this without the wildcards? Link to comment https://forums.phpfreaks.com/topic/251689-using-for-multiple-files/#findComment-1291894 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.