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

 anyone can edit this HTACCESS Code ?
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Lion4H
Junior WebHelper
Junior WebHelper


Joined: 18 Jul 2004
Posts: 1

PostPosted: Sun Jul 18, 2004 7:26 am (19 years, 9 months ago) Reply with QuoteBack to Top

i need to protect one file with user name and password , and i found and use this code :
Code:

<FilesMatch "admin.php">
AuthName "please user name and password ?"
AuthType Basic
AuthUserFile /home/user/.htpasswds/pass
require valid-user
</FilesMatch> 


and it's work good , but the problem that every file named admin.php in the site become need user name and password Sad

anyone know how i can protect just one file ???
OfflineView User's ProfileFind all posts by Lion4HSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sun Jul 18, 2004 7:58 am (19 years, 9 months ago) Reply with QuoteBack to Top

I'm not sure about this, but try replacing "FilesMatch" with "Files" (at the beginning and end of the code you posted).

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
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.263503 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme