![]() |
can someone help me password protect pages
I'm trying to password protect some pages..
I'd like to be able to protect certain pages, but don't know how to do this. I know how to protect a directory, like /members/ but what about just single pages in the root. Can it be done,, I can't just move the pages into a directory because then the scripts to run the site won't work unless I recode the entire thing,,, for example, I know how to password protect domain.com/members/ but what I want to do is password protect domain.com/members.html without password protecting domain.com I hope this is understandable |
icq me
just need to redirect members.html to /members/ you can't just password protect one file |
Wrong posting... ehm :helpme
|
htaccess :2 cents:
|
Quote:
hitting you up now,, |
I can tell you exactly what to do, but first you must update us on the "love of my life" drama. Haha just kidding bro :)
Actually I don't really know how to do it, I'm sure someone here will hook you up though, good luck. |
----------------
To password protect just a single file in a folder, use the following .htaccess file: AuthUserFile /full/path/to/.htpasswd AuthType Basic AuthName "My Secret Page" <Files "mypage.html"> Require valid-user </Files> This will password protect just the mypage.html file in the folder where you put the .htaccess file. ----------- |
thanks Ray.
I tried something similar found on Dynamic Drive But it does not look like it is working? It did for a second & I logged in, now I don't get the prompt anymore.. must because I have cookie maybe http://www.77k.org/testing.htm is anyone getting the password prompts? |
Quote:
Yep... :thumbsup |
Quote:
thanks Boldy what about without the www http://77k.org/testing.htm |
Quote:
|
Quote:
thanks, :thumbsup |
All times are GMT -7. The time now is 08:00 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123