Jump to content


Photo

Trying to utilize .htaccess


  • Please log in to reply
No replies to this topic

#1 msaz87

msaz87
  • Members
  • PipPipPip
  • Advanced Member
  • 190 posts

Posted 06 July 2006 - 05:47 AM

Hey,

I'm trying to use my .htaccess file to do two things.

The first,
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:
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.foothillsbaptist.org
AuthUserFile /home/footh4/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/footh4/public_html/_vti_pvt/service.grp
Options +Indexes
   IndexOptions FancyIndexing SuppressDescription SuppressHTMLPreamble
   HeaderName header.htm
   ReadmeName footer.htm
   IndexIgnore header.htm footer.htm .htaccess direclogo.gif
suPHP_ConfigPath /home/footh4/public_html

And the code for the new .htaccess is:
Options +Indexes
   IndexOptions FancyIndexing SuppressDescription SuppressHTMLPreamble
   HeaderName header.htm
   ReadmeName footer.htm
   IndexIgnore header.htm footer.htm .htaccess direclogo.gif

I noticed one difference between the two servers.. as the first (the one that worked) had this as default before i modified it:
Posted Image

The new default is:
Posted Image

Does anyone have any ideas for this one?

The second question,
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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users