Page 1 of 1

HTAccess File For Downlaods

PostPosted: October 17th, 2010, 5:24 pm
by erichamby
The HTAccess file in the downloads folder dont seem to work. Users can still access the file by putting in the direct URL to the file.

Re: HTAccess File For Downlaods

PostPosted: October 22nd, 2010, 10:06 pm
by Jason Caldwell
Hi Eric. Thanks for reporting this important issue.

Please try changing your .htaccess file to this:
Code: Select all
order allow,deny
deny from all

If you still have trouble, check your Apache server configuration
to make sure you have these lines in your httpd.conf file for Apache.
Code: Select all
AllowOverride All
AccessFileName .htaccess

Also, please be sure ONE of the following Apache modules are enabled in your server configuration.

mod_access ( for Apache 1.3 - 2.0 )
https://httpd.apache.org/docs/2.0/de/mo ... ccess.html

mod_authz_host ( for Apache 2.1+ )
http://httpd.apache.org/docs/2.2/mod/mo ... _host.html


If you're on a Windows server running IIS instead of Apache, none of this will help. Windows servers running IIS will need to install a web.config file to replace the .htaccess file normally intended for Linux/Unix based operating systems. See: http://learn.iis.net/page.aspx/557/tran ... webconfig/