Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

htaccess issue

May 31, 2005 12:02PM PDT

Here is the problem.

I am using an .htaccess file to require a username/password to enter a certain part of my website. The .htaccess file resides let's say in www.website.com/area . I have several directories under /area. In Mozilla, everything seems to function just fine. However, in IE, sometimes people report that they have to enter the password several times when they access areas under /area. I say sometimes because this doesn't happen consistently. Occasionally it will remember the password and function as expected. I want them to only have to enter it once and I think that is how it should function.

Does anyone have any ideas?

Discussion is locked

- Collapse -
Just implementing this on ...
May 31, 2005 12:17PM PDT

An Apache server. But in that server they don't prefer htaccess. I will not duplicate the documentation here, but note it since it can matter what web server you used.

Bob

- Collapse -
Yes, it is Apache
May 31, 2005 11:31PM PDT

It is an Apache server. You say htaccess isn't preferred on Apache servers. Can you offer any other alternatives to requiring autorization for this area of my website?

- Collapse -
It's in the docs. Here's an excerpt.
May 31, 2005 11:40PM PDT

''When (not) to use .htaccess files

In general, you should never use .htaccess files unless you don't have access to the main server configuration file. There is, for example, a prevailing misconception that user authentication should always be done in .htaccess files. This is simply not the case. You can put user authentication configurations in the main server configuration, and this is, in fact, the preferred way to do things.''

No need for me to duplicate the documentation. You did install the full package?

Bob