IceDragon Posted February 24, 2008 Share Posted February 24, 2008 hey, i created a .htaccess and .htpassword files and when i try to access the test.php on my website and enter the username and password it doesnt work. can anyone tell me where's the problem? .htaccess <Files "test.php"> AuthUserFile /www/test.mytestwebsite.net/.htpasswd/ AuthType Basic AuthName "Test test test" <LIMIT GET> require valid-user </LIMIT> </Files> .htpassword test:test i even tried encyrpting 'test' password but it still wouldnt work. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 25, 2008 Share Posted February 25, 2008 What do you mean doesn't work? The password in htpassword will need to be encrypted by running the htpassword utility that came with Apache. Have a read of the Apache Documentation on Authentication with .htaccess/.htpassword. Quote Link to comment Share on other sites More sharing options...
IceDragon Posted February 29, 2008 Author Share Posted February 29, 2008 i got it working. the path to dir was wrong. thanks anyway =) Quote Link to comment 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.