the_oliver Posted November 23, 2010 Share Posted November 23, 2010 Hello, I would like to be able to use the following to secure a 777 file a little: <FilesMatch "\.(inc|php)$"> deny from all </FilesMatch> <FilesMatch "\.(inc|htm)$"> deny from all </FilesMatch> <FilesMatch "\.(inc|html)$"> deny from all </FilesMatch> I don't want to have to put the .htaccess file in the 777 folder as it would defeat the purpose a little. How would i go about changing the FileMatch pattern to be acting on a different directory? Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/219587-htaccess/ 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.