.htaccess?????

They have: 26 posts

Joined: Mar 2000

I am a bit lost as to what it means, I have a .htaccess file on my system that I was instructed to create by one of the scripts and add a certain cryptic line. Another script I have though (with minimum support for setting up,) states...

"Now password protect your admin directory
using .htaccess or similar password protection."

How do I go about doing this? Another problem is that the file cannot be saved as .htaccess on my computer (invalid file name,) so I upload and then rename, is this the usual way of doing things?

Thanks

Nemes

They have: 98 posts

Joined: Jan 2000

yep, upload then rename... also, you can have one hta file doing multiple things (each line), or in some cases more than one hta file in different directories doing certain things.

I have this feeling that you actually only need one in your home directory, which can do it all if you write it correctly, but since I only use it for simple things, not sure how to set that up 100%

been a bit since I have used it for anything.

Live Hosting Chat! at http://www.HostHideout.com

They have: 20 posts

Joined: May 2000

Your .htaccess should contain something like this:

AuthUserFile /somepath/to/.htpasswd
AuthName "Somewhere.com's Secret Section"
AuthType Basic

Then you need to create your .htpasswd file.
That's it.
Good Luck.

HotRedirect - Free URL Redirection and Unlimited E-mails

[This message has been edited by hcshim (edited 18 May 2000).]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.