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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.