4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Simple .htaccess stuff (I can't believe I can't figure this)
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
RichieGraham
Junior WebHelper
Junior WebHelper


Joined: 24 May 2003
Posts: 1
Location: Devon, UK

PostPosted: Sat May 24, 2003 3:22 pm (14 years, 6 months ago) Reply with QuoteBack to Top

OK... I'm using a .htaccess file to password protect part of my site but it doesn't work. I'm pretty sure the problem is where the .htpasswd file is, but I've no idea where to point it to in the .htaccess file (whether I need the complete URL, or whether it's dependant on the site base directory, or whether it's dependant on the folder where the .htaccess file is.)

Like I say, this is simple stuff, but I can't seem to find an answer anywhere!

Hope someone can help!

Richie
OfflineView User's ProfileFind all posts by RichieGrahamSend Personal MessageVisit Poster's WebsiteMSN MessengerICQ Number
SfCommand
Senior WebHelper
Senior WebHelper


Joined: 10 Nov 2002
Posts: 143
Location: UK

PostPosted: Sat May 24, 2003 3:27 pm (14 years, 6 months ago) Reply with QuoteBack to Top

In your .htaccess file, you'll need the absolute path to your .htpasswd file. (I normally put both in the dir I want to protect.)

________________________________
Miguel

http://community.34sp.com
http://www.miguel.me.uk | http://www.sfcommand.co.uk | http://www.ssdg.org.uk
OfflineView User's ProfileFind all posts by SfCommandSend Personal MessageVisit Poster's Website
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Sat May 24, 2003 3:43 pm (14 years, 6 months ago) Reply with QuoteBack to Top

Code:
AuthType Basic
AuthName "moo!"
AuthUserFile /home/user/passwd
Require valid-user

it should look something like that...

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.054701 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme