Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess problem

Status
Not open for further replies.

michael12

Programmer
Sep 26, 2002
25
US
I have a login script using AuthCookieHandler, my .htaccess contains:
------
require valid-user
Options +Includes
<Files index.htm>
AddType text/html .htm
AddHandler server-parsed .htm
</Files>
------
which use SSI.
Problem: when I first login, it just shows a list of folders and files, cannot open index.htm, I have to manually click index.htm, but if I logout and login again, it open the index.htm correctly.
Does anyone know the reason? Thanks in advance.

 
Change
<Files index.htm>
AddType text/html .htm
AddHandler server-parsed .htm
</Files>
to
AddType text/html .htm
AddHandler server-parsed .htm
This would enable SSI for all .htm pages in that directory. If you only want it for index.htm, then use this
<Files index.htm>
SetHandler server-parsed
</Files>
//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top