This is a discussion on "htaccess password prob" within the Other Programming Languages section. This forum, and the thread "htaccess password prob are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
htaccess password prob
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
htaccess password prob
having a problem trying to get it working. i have my htaccess file in my public folder and my htpasswd file in the protected folder however i keep getting a 500 internall error?
.htaccess
|
|
|
|
|||
|
Re: htaccess password prob
any thoughts?
|
|
|||
|
Re: htaccess password prob
Your last line in the .htaccess file; I just use:
Is your password coded into md5 format? If not, that is propably your problem. |
|
|||
|
Re: htaccess password prob
gave up on it, just created a simple php login script. don't think it was in md5 format. i'll check that out. Thanks
|
|
|||
|
Re: htaccess password prob
Quote:
|
|
|||
|
Re: htaccess password prob
Is your user really 'wsabstract' as found in tutorials?
Secondly, the path to your .htpasswd file has to be your server path, not domain path, AND your directory name has a space in it. May be worth checking both if you haven't already sorted it. |
|
|||
|
Re: htaccess password prob
No solution guys...?
ahh...cammon...!!! Just a tought! I am using a free Domain to upload my own small website for personal use. You guys are talking about this server path... So how am I going to know my server path if I am going to use this .htaccess in my site? Here is my sample image of how my folder management in the domain file manager. [ FolderTree ] Thanks.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Jul 27th, 2007 at 08:49. Reason: Adding image attachment |
|
|||
|
Re: htaccess password prob
For example, you should have in .htaccess:
AuthUserFile e.g. /homepages/34/accountnumber/_hiddendirectory/pw_file or some such. /homepages/34/accountnumber or whatever, is your website path on the host's server. Somewhere in the help documentation with your hosting provider they will give you the server path for your site. If not, email them. Hope that helps. |
|
|||
|
Re: htaccess password prob
Ok I found it..
But the server path of my site begin with a harddisk directory something like:
If this is true, then I should save my .htaccess file into whichever folder that I want to protect, am I right so far? What about the htpasswd file(that contain the username and the encrypted password)? Where am I supposed to put it? Is it in my moniesblog directory or in some other specific folder? Thanks..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: htaccess password prob
Are you running from a local server i.e. on your home computer, or a web host? Unusual for a web host to have an absolute path beginning with c:/...
Anyway, the .htaccess file goes in the directory you are trying to protect. The .htaccess file contains the path to your (hidden) .htpasswd file. The password file can go anywhere - just make sure it's hidden. Hope that helps. |
|
|||
|
Thanks matelot..
I am actually using a free web host. After checking with my web host, they said that free account does not support "htaccess". Hemmm.... can you suggest me any free web host out there that support htaccess. I am developing my personal website at the beginning stage, after it's complete, then I will think about buying a cheap domain. Thanks again.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Tags |
| htaccess password |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forgot password and Change password PHP script | Chono | PHP Forum | 4 | May 16th, 2008 09:13 |
| Password protecting pages (.htaccess) | fernandopolania | Web Page Design | 10 | Oct 24th, 2007 16:45 |
| ie6 prob with header | karloff | Web Page Design | 1 | Apr 27th, 2007 21:05 |
| BG prob in firefox | tkey | Web Page Design | 6 | Jun 5th, 2006 12:50 |
| IE prob | karloff | Web Page Design | 11 | Apr 24th, 2006 11:41 |