dieselcruiserhead
04-29-2003, 09:29 AM
I know some of you are fairly knowledgable when it comes to computers and web sites. 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."
I email 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 accomidate the proper website address
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
I email 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 accomidate the proper website address
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