Hi,
Here is an example of a .htaccess file in a folder that works under Wamp 5 :
AuthType Basic
AuthName "Your Site Name or Something"
AuthUserFile c:/wamp/apache2/conf/passwd
Require valid-user
You need to add the usernames and passwords into the file passwd by using the htpasswd utility, as described in the Apache documentation at [
httpd.apache.org]. In Wamp 5 the program is c:\wamp\Apache2\bin\htpasswd.exe.
You need to have mod_auth_basic is enabled: go to the WAMP icon in the System Tray, then Apache Modules and make sure auth_basic_module is selected.
However, it looks as if you do not have to use .htaccess for authentication. Go to [
httpd.apache.org] and have a look at the paragraph Authentication Example.
Regards,
toivo
Sydney, Australia
Edited 2 time(s). Last edit at 01/10/2008 02:09AM by toivo.