Jump to content

Trying to utilize .htaccess


msaz87

Recommended Posts

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,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[/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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.