Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- .htaccess and .htpasswd


WarmGlow - 7:18 am on Jun 20, 2003 (gmt 0)


watermelon,

Remove the <br> from your first line and make sure that your "AuthUserFile" line does not wrap. Add the "require valid-user" line as shown below. Also, make sure that you upload your .htaccess file in ASCII mode. Here is a sample .htaccess file:

AuthUserFile /absolute/path/to/.htpasswd
AuthGroupFile /dev/null
AuthName "Private Directory"
AuthType Basic

require valid-user


Thread source:: http://www.webmasterworld.com/php/787.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com