Taperssection.com

Gear / Technical Help => Post-Processing, Computer / Streaming / Internet Devices & Related Activity => Topic started by: pwig on December 27, 2010, 09:50:06 PM

Title: website help: linking to a folder rather than another webpage...
Post by: pwig on December 27, 2010, 09:50:06 PM

I have tried for many years to maintain a website of my recordings, both those I recorded and my collection. Because it is quite a bit of work to keep up with this, I would like to create links from a webpage to a folder of the setlists of each band. How do you just create a link to a folder that would show the contents of the directory without having to create a page with hyperlinks with 100's of links?

Thanks if you can help...
Title: Re: website help: linking to a folder rather than another webpage...
Post by: mattmiller on December 27, 2010, 10:02:26 PM
Make the link to the folder and it will, by default, show the contents of the directory as long as there isn't a file in the folder named "index" or "home".
Title: Re: website help: linking to a folder rather than another webpage...
Post by: runonce on December 28, 2010, 12:57:59 AM
Make the link to the folder and it will, by default, show the contents of the directory as long as there isn't a file in the folder named "index" or "home".

Yeah - like

http://www.somedomain.com/thefolder/

Should do it...it might not be pretty - but will work..

And - there are probably some php scripts that can make a "prettier" index page...
Title: Re: website help: linking to a folder rather than another webpage...
Post by: rastasean on December 28, 2010, 01:27:08 AM
the two gents are right, index.html is standard.

it may be best to disable indexing to prevent it from showing contents of an entire folder. If there is no index.html file, they will get a forbidden warning as opposed to the directory.
Title: Re: website help: linking to a folder rather than another webpage...
Post by: runonce on December 28, 2010, 01:50:03 AM
scriptware like:

http://freshmeat.net/projects/autoindex

or

http://rok.fpp.edu/projects/digital_archive/

might be fun... :-*

Title: Re: website help: linking to a folder rather than another webpage...
Post by: pwig on December 28, 2010, 07:39:54 AM

When I just write the code to link to the folder I always get the 403 forbidden page.

Are you suggesting to link to a page with some of the scripts located in the code to get a "pretty" type directory?

Thanks for the ideas...
Title: Re: website help: linking to a folder rather than another webpage...
Post by: runonce on December 28, 2010, 07:55:03 AM

When I just write the code to link to the folder I always get the 403 forbidden page.

Are you suggesting to link to a page with some of the scripts located in the code to get a "pretty" type directory?

Thanks for the ideas...

Ok - been a while, but I think to allow indexing of subdirectories you have to change something in the apache config file (the exact name of which escapes me) This assumes you have some sort of apache/linux host...

The scripts mentioned above would likely live in the same directory that you are trying to display - calling them would produce the "pretty" directory list (you can probably edit its looks as well)
Title: Re: website help: linking to a folder rather than another webpage...
Post by: runonce on December 28, 2010, 08:12:56 AM
I just uploaded the AutoIndex script mentioned above...

http://rovingsign.com/indexme/index.php

Pretty simple, upload, point, shoot.
Title: Re: website help: linking to a folder rather than another webpage...
Post by: pwig on December 28, 2010, 03:48:40 PM

This is exactly what I was looking for - thank you!

Now I need some different help - where do I upload this script? I host with godaddy and will also need to know if I need to make any hosting changes as my account is currently set up as Linux hosting.

Again, thank you!
Title: Re: website help: linking to a folder rather than another webpage...
Post by: runonce on December 28, 2010, 04:25:48 PM

This is exactly what I was looking for - thank you!

Now I need some different help - where do I upload this script? I host with godaddy and will also need to know if I need to make any hosting changes as my account is currently set up as Linux hosting.

Again, thank you!

I think the script has to live in the directory you want indexed...you'll call

http://www.domain.com/thedirectory/index.php

If you put it in the root - it should show all sub folders...

http://www.domain.com/index.php

You do need to have php - which you should have. Generally, commercial servers are configured to treat index.php as the default file...
Title: Re: website help: linking to a folder rather than another webpage...
Post by: pwig on December 28, 2010, 09:04:16 PM

Perfect - got it! Thank you!