ballhogjoni Posted August 10, 2011 Share Posted August 10, 2011 I used to be able to download files like this one, but as you can see i get a 403 forbidden. http://uploadshack.us/files/OThkMy4E1312990602.html My .htaccess file looks like this: RewriteEngine On RewriteRule ^files/(.*).html$ /download.php?file_id=$1 [L] Permissions on download.php is 644. What is wrong with that? Link to comment https://forums.phpfreaks.com/topic/244419-what-is-wrong-with-my-htaccess-file/ Share on other sites More sharing options...
ballhogjoni Posted August 10, 2011 Author Share Posted August 10, 2011 I noticed that if I remove the s in files both in the url and the rewrite rule it works. is that all about? Link to comment https://forums.phpfreaks.com/topic/244419-what-is-wrong-with-my-htaccess-file/#findComment-1255528 Share on other sites More sharing options...
cags Posted August 11, 2011 Share Posted August 11, 2011 Do you actually have a files folder in the root directory of your site? It sounds like that is the case and that the server is restricting access to the directory. Link to comment https://forums.phpfreaks.com/topic/244419-what-is-wrong-with-my-htaccess-file/#findComment-1255707 Share on other sites More sharing options...
ballhogjoni Posted August 12, 2011 Author Share Posted August 12, 2011 Do you actually have a files folder in the root directory of your site? It sounds like that is the case and that the server is restricting access to the directory. No I don't. Link to comment https://forums.phpfreaks.com/topic/244419-what-is-wrong-with-my-htaccess-file/#findComment-1256232 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.