TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Absolute Beginners htaccess (http://www.talkphp.com/absolute-beginners/3979-absolute-beginners-htaccess.html)

hello-world 02-15-2009 10:48 PM

Absolute Beginners htaccess
 
I have the following setting and it is not working.I have studied many tutorials on .htaccess,but they didn't help at all.

First about the locations of directories.
////////// DIRECTORIES///////////
D:wamp/www/sitename

sitename -> .htaccess
sitename ->..htpasswd


The files
////////// FILE ///////////
---------------
.htaccess

AuthUserFile .htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require user wsabstract

.htpasswd
htuser:htpass

when I open the index.php.As I enter I get the error number 500.
or even when i cancel it.

Thanks in ADVANCE.

Wildhoney 02-16-2009 12:38 AM

AuthGroupFile needs to point to the directory location of the corresponding htpasswd file.

hello-world 02-16-2009 03:34 PM

AuthUserFile "sitename/.htpasswd"
AuthGroupFile "sitename/.htpasswd"
AuthName EnterPassword
AuthType Basic
require valid-user

And it is still not working.It is the error 500 I get.
For AuthUserFile and AuthGroupFile I tried even "http://localhost/sitename/.htaccess" and "www/sitename/.htaccess"

Can anyone send me a zip containing these files Please.
It will really appreciated.
here is the Url I uploaded.
__http://rapidshare.com/files/198818523/sitename.zip.html


All times are GMT. The time now is 03:41 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0