newb Posted July 28, 2012 Share Posted July 28, 2012 <filesMatch "^(download.php?hash=(.*))$"> not working.. Quote Link to comment https://forums.phpfreaks.com/topic/266397-filesmatch-doesnt-work/ Share on other sites More sharing options...
Christian F. Posted July 28, 2012 Share Posted July 28, 2012 That's not PHP. Either that, or you're missing a whole lot of code we need to see. Quote Link to comment https://forums.phpfreaks.com/topic/266397-filesmatch-doesnt-work/#findComment-1365148 Share on other sites More sharing options...
requinix Posted July 28, 2012 Share Posted July 28, 2012 I highly doubt you have a file named "download.phphash=...". What you want is probably URL rewriting. Quote Link to comment https://forums.phpfreaks.com/topic/266397-filesmatch-doesnt-work/#findComment-1365158 Share on other sites More sharing options...
newb Posted July 28, 2012 Author Share Posted July 28, 2012 <filesMatch "^(download.php?hash=(.*))$"> deny from all </filesMatch> why doesnt this work in htaccess? Quote Link to comment https://forums.phpfreaks.com/topic/266397-filesmatch-doesnt-work/#findComment-1365159 Share on other sites More sharing options...
requinix Posted July 29, 2012 Share Posted July 29, 2012 why doesnt this work in htaccess? Because you don't have a file named "download.phphash=...". Like I already told you. Quote Link to comment https://forums.phpfreaks.com/topic/266397-filesmatch-doesnt-work/#findComment-1365186 Share on other sites More sharing options...
newb Posted July 29, 2012 Author Share Posted July 29, 2012 ya i do Quote Link to comment https://forums.phpfreaks.com/topic/266397-filesmatch-doesnt-work/#findComment-1365272 Share on other sites More sharing options...
Pikachu2000 Posted July 29, 2012 Share Posted July 29, 2012 Copy and paste the actual filename here. Quote Link to comment https://forums.phpfreaks.com/topic/266397-filesmatch-doesnt-work/#findComment-1365273 Share on other sites More sharing options...
requinix Posted July 29, 2012 Share Posted July 29, 2012 ya i do No. You. Don't. I'm sure you have a file named "download.php" but that has NOTHING to do with your problem. Quote Link to comment https://forums.phpfreaks.com/topic/266397-filesmatch-doesnt-work/#findComment-1365311 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.