View Full Version : .htaccess and questions
mwmtex
02-20-2010, 07:44 PM
I am relatively new to using a .htaccess file so please bare with me. After hours of frustration trying to get a form to open upon a 401 error I have realized that with .htaccess implemented I basically am not allowing anything to open if you are not logged in via secure access. Is there a entry I can put into the htaccess file that would allow certain html files to be opened by anonymous users? I would like anyone that hits my site without proper credentials to be forwarded to a page with a access request form they can complete to request access to my site. I wanted to do with in my site and not have to re-direct to another site or location outside my domain.
alienspaces
02-23-2010, 04:04 AM
Your question is difficult to decipher :)
You may want to try giving an example using actual file name examples and a clearer description of what behaviour you would like.
You can target specific files or files that match an expression with .htaccess restrictions while allowing other files to be accessed without the need for a user to enter in any credentials.
This page gives a good explanation of how to do it:
http://www.ssi-developer.net/htaccess/htaccess_protection_file.shtml
Falcon1986
02-23-2010, 04:22 AM
So basically, you want all non-members to be presented with a login form when they try to access your website?
What are you using to handle logins?
sjlplat
02-23-2010, 07:41 PM
My Login Session (http://www.myphpscripts.net/?sid=7) script will do this.
Powered by vBulletin™ Version 4.0.6 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.