TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-15-2009, 10:48 PM   #1 (permalink)
The Contributor
 
hello-world's Avatar
 
Join Date: Feb 2009
Posts: 73
Thanks: 30
hello-world is on a distinguished road
Default 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.
hello-world is offline  
Reply With Quote
Old 02-16-2009, 12:38 AM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

AuthGroupFile needs to point to the directory location of the corresponding htpasswd file.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
hello-world (02-16-2009)
Old 02-16-2009, 03:34 PM   #3 (permalink)
The Contributor
 
hello-world's Avatar
 
Join Date: Feb 2009
Posts: 73
Thanks: 30
hello-world is on a distinguished road
Default

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

Last edited by hello-world : 02-16-2009 at 04:07 PM.
hello-world is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Absolute Beginner Explains Me! conrad Absolute Beginners 15 01-26-2009 03:21 AM
Tutorial for Beginners - Not a usual tutorial [Read it all and i think it will help] codefreek Absolute Beginners 8 01-26-2009 03:14 AM
Beginners Problem Normo MySQL & Databases 15 11-29-2008 03:08 AM
redirecting to subdomain via htaccess Dan General 5 03-04-2008 02:14 PM
htaccess securing url sarmenhb General 2 01-19-2008 09:49 PM


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

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design