msaz87 Posted July 6, 2006 Share Posted July 6, 2006 Hey,I'm trying to use my .htaccess file to do two things.[b]The first,[/b]I want to add style to my default apache-generated directories. I was able to accomplish this on a different server, adding a header.htm and footer.htm. But when i transfered my .htaccess over to a new Apache 2.2 server, it does not work.The code for the server that it worked on is:[code]# -FrontPage-IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*<Limit GET POST>order deny,allowdeny from allallow from all</Limit><Limit PUT DELETE>order deny,allowdeny from all</Limit>AuthName www.foothillsbaptist.orgAuthUserFile /home/footh4/public_html/_vti_pvt/service.pwdAuthGroupFile /home/footh4/public_html/_vti_pvt/service.grpOptions +Indexes IndexOptions FancyIndexing SuppressDescription SuppressHTMLPreamble HeaderName header.htm ReadmeName footer.htm IndexIgnore header.htm footer.htm .htaccess direclogo.gifsuPHP_ConfigPath /home/footh4/public_html[/code]And the code for the new .htaccess is:[code]Options +Indexes IndexOptions FancyIndexing SuppressDescription SuppressHTMLPreamble HeaderName header.htm ReadmeName footer.htm IndexIgnore header.htm footer.htm .htaccess direclogo.gif[/code]I noticed one difference between the two servers.. as the first (the one that worked) had this as default before i modified it:[img]http://www.foothillsbaptist.org/deleteable/directories.gif[/img]The new default is:[img]http://www.foothillsbaptist.org/deleteable/direc2.gif[/img]Does anyone have any ideas for this one?[b]The second question,[/b]I imagine this one is much simpler... but i want to change the settings so that the directory searches for index.htm and index.php as well as index.html when you enter an address like: http://localhost/forums/Any help is appreciated. Thanks. Link to comment https://forums.phpfreaks.com/topic/13817-trying-to-utilize-htaccess/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.