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> Quote 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> Quote 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 Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/251689-using-for-multiple-files/#findComment-1291894 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.