Page 1 of 1

Website

Posted: Sun Oct 18, 2009 9:05 pm
by MikeW
Ok sorry if this has been posted but have had a look and cant find exactly.

I have activated my webspace and have uploaded some files I want to share with other via http://home.exetel.com.au/mawhite/

I have created a blank index.html file in the main directory after logging into the FT site (where I can see the files). What do I have to do to allow others to see these via the link without having to provide the password to people I send it to. I had a similiar setup in aaNet and didn't need to do anything special.

thanks for any guidance.

Michael

Re: Website

Posted: Sun Oct 18, 2009 9:42 pm
by Dazzled
A Microsoft Office file containing nothing but undisplayable garbage is one hell of an overkill for a blank file! Much easier would be a proper index file containg a heading and a list of links to your material.

Another way, which may suit you better, is:
1. Create a subdirectory or folder in your web space, using the ftp client. In that new directory place your various files, plus a small file called .htaccess.

2. Note the spelling and leading full stop. This is an illegal file name in Windows, so create it in Notepad, called say htaccess.txt, and move it over with ftp. Do not use Office. When you have the file uploaded change its name to the correct form with the ftp client.

3. .htaccess must contain only one line, exactly as this:

Code: Select all

Options +Indexes
Others will be able to reach the new folder with their browsers, eg http://home.exetel.com.au/mawhite/mythings and will see a display of downloadable files.

Re: Website

Posted: Sun Oct 18, 2009 10:04 pm
by MikeW
Dazzled wrote:A Microsoft Office file containing nothing but undisplayable garbage is one hell of an overkill for a blank file! Much easier would be a proper index file containg a heading and a list of links to your material.

Another way, which may suit you better, is:
1. Create a subdirectory or folder in your web space, using the ftp client. In that new directory place your various files, plus a small file called .htaccess.

2. Note the spelling and leading full stop. This is an illegal file name in Windows, so create it in Notepad, called say htaccess.txt, and move it over with ftp. Do not use Office. When you have the file uploaded change its name to the correct form with the ftp client.

3. .htaccess must contain only one line, exactly as this:

Code: Select all

Options +Indexes
Others will be able to reach the new folder with their browsers, eg http://home.exetel.com.au/mawhite/mythings and will see a display of downloadable files.
Thanks - not sure what you mean about the Office file. Opened up a blank page and saved as a HTM file then renamed to HTML is all.

Re: Website

Posted: Sun Oct 18, 2009 10:12 pm
by Dazzled
Re Office, yes I know. 21 KB of nothing. If you follow the .htaccess method you won't need it. Just don't use Word to create the file - Word does not produce ASCII standard text files. Use Notepad.

Re: Website

Posted: Mon Oct 19, 2009 7:13 am
by MikeW
Mmmm. Followed your instructions exactly. 1KB .htaccess. file in "Videos" directory off the main.

http://home.exetel.com.au/mawhite/Videos/

Takes me to a 403 Forbidden.

Sorry for the asking what next....

cheers

Re: Website

Posted: Mon Oct 19, 2009 7:22 am
by Dazzled
It should work, so that your browser gets a directory tree of your files in a downloadable format. There is another hard-to-fathom "Forbidden" problem this morning, so we may have to wait until a system admin picks up this thread.

Re: Website

Posted: Mon Oct 19, 2009 4:58 pm
by MikeW
Anyone able to shed light on why this wont work?


EDIT - this works now. Followed instructions to a T with ".htaccess." but needed to get rid of the last "."
rgds

Re: Website

Posted: Mon Oct 19, 2009 5:02 pm
by SysAdmin
MikeW wrote:Anyone able to shed light on why this wont work?
Making the extention nothing does not actually remove the . extension separator.

You have: .htaccess.

You need to have: .htaccess

Andrew

Re: Website

Posted: Mon Oct 19, 2009 5:17 pm
by Dazzled
Glad that's fixed. Is that the result you are after? It has the benefit that you can change files around and don't have to code anything.

Re: Website

Posted: Mon Oct 19, 2009 5:33 pm
by MikeW
Dazzled wrote:Glad that's fixed. Is that the result you are after? It has the benefit that you can change files around and don't have to code anything.
Yep thanks Dazzled.

Re: Website

Posted: Fri Jan 29, 2010 9:32 pm
by Franz
Hi

I have just tried to follow the instructions by dazzled given to MikeW last October.

My aim is to use the webspace for the remote calendar file for use with Lighting / Thunderbird so I can access it from my netbook when I travel.

My webspace is http://home.exetel.com.au/gorokan1/MyCalendars/

I have created the .htaccess file with notepad and uploaded it to the MyCalendar folder and also a sample calendar file (special.ics) . I can see it there with the ftp client, but going to the website I receive a 500 Server error.

What am I doing wrong ?

Many thanks for any help.
Franz

Re: Website

Posted: Fri Jan 29, 2010 10:11 pm
by Dazzled
The message indicates that you are asking the server to do something forbidden or in error. Do you have a script as the index file, with a file error for example?

.htaccess (spelled exactly like that) containing only the single line Options +Indexes will cause the server to display a directory listing of that directory. There is no need for an index.html or index.php file in the directory. Since this is a subdirectory it will inherit any .htaccess above it, so don't put one there.

If you used Notepad, use the ftp client to delete the suffix ".txt" on the server copy.

Re: Website

Posted: Fri Jan 29, 2010 11:03 pm
by Franz
Hi dazzled

Thanks for the comments: works OK now. Clue is in this line:
".htaccess (spelled exactly like that) containing only the single line Options +Indexes will cause the server to display a directory listing of that directory"

I copied/pasted from the october thread, not realizing I had picked up both lines.

Many thanks again
Franz