English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am trying to upload an .htaccess file to my webroot directory using Fetch and Mac OSX but OSX won't let me create a file with a "." at the beginning off the file name without making it an invisible file therefore making it impossible to upload to my host server...sorry I am a newb at web stuff and I have a site uploaded that won't work with domain name unless you type in the exact file name you are trying to get in the URL.
Eg. www.webaddress.ca - comes up with a virtual directory error even though I have an index.html file in the main directory but if I type in www.webaddress.ca/index.html it will load my page fine.
HELP! I need to go live in a couple of days and this is making me nuts!

2006-09-12 02:00:29 · 2 answers · asked by rionwood 1 in Computers & Internet Programming & Design

I have now uploaded the .htaccess file BUT my site still will work, if I go the the exact URL I get a "Directory Listing Denied. This Virtual Directory does not allow contents to be listed."
ARGH!
Any ideas?

2006-09-12 02:09:48 · update #1

2 answers

Place the following in your .htaccess file

DirectoryIndex index.html

2006-09-12 03:08:53 · answer #1 · answered by AnalProgrammer 7 · 0 0

save the file as a typical textfile like "htaccess.txt"
Then use your FTP client to upload it to the website.
After it's uploaded, select it, press enter, and rename it ".htaccess".

That should do it.

2006-09-12 02:02:55 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers