Click to See Complete Forum and Search --> : .htaccess file for a web site...


cis
04-29-2003, 11:32 AM
I have a new site that has mysteriously lost it's .htaccess file that does not allow a viewer to see the contents of a directory without directly accessing the file. AKA if I link to a directory and want someone to see all the files in it, I have to list all of the directory's contents otherwise it will read "you do not have permission to view these contents." For example, this directory, with CHMOD set to 755, displays this:
http://www.collegeinternetsolutions.com/cisautoweb/dtlc/mustard/

There are aobut 30 images in that folder. I want people to be able to view the images in that folder without me having to create a web site to view them...

I emailed the company's support and they wrote back:

Did you delete your .htaccess file? (which I did not).
You need to add a certain line to your .htaccess file (the last line below).

So I created the file as a .htaccess file (not .htaccess.txt or something of the sort) and it would not allow me to have my site function properly, the entire site. In the end, I deleted all content and left the .htaccess file blank so the site is still viewable...

Here is the code, does anyone have any ideas what to do here...

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.websitename.com I realize this must be changed to the proper website
AuthUserFile /home/virtual/site41/fst/var/www/html/_vti_pvt/service.pwd
AuthGroupFile /home/virtual/site41/fst/var/www/html/_vti_pvt/service.grp
DirectoryIndex index.html index.htm index.shtml default.htm default.html
Default.htm Default.html index.cfm
Options +Indexes

_____________
Just create it in notepad, upload it to the mainwebsite_html dir and make sure it is .htaccess not .htaccess.txt

cis
04-29-2003, 01:19 PM
I just edited to perhaps make the email easier to understand...