Become a Site Supporter and Never see Ads again!

Author Topic: website help: linking to a folder rather than another webpage...  (Read 2668 times)

0 Members and 1 Guest are viewing this topic.

Offline pwig

  • Trade Count: (2)
  • Taperssection Regular
  • **
  • Posts: 181
website help: linking to a folder rather than another webpage...
« 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...

Offline mattmiller

  • Trade Count: (20)
  • Taperssection All-Star
  • ****
  • Posts: 1454
  • Gender: Male
Re: website help: linking to a folder rather than another webpage...
« Reply #1 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".
Mics: Neumann KM100 (x4), AK40 (x2), AK50 (x2)
Pre: Lunatec V3
Recorders: Tascam DR-680, Tascam HD-P2 (x2), Sony PCM-M10

runonce

  • Guest
  • Trade Count: (0)
Re: website help: linking to a folder rather than another webpage...
« Reply #2 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...

Offline rastasean

  • in paradise
  • Trade Count: (23)
  • Needs to get out more...
  • *****
  • Posts: 3699
  • Gender: Male
Re: website help: linking to a folder rather than another webpage...
« Reply #3 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.
Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than it’s worth.

runonce

  • Guest
  • Trade Count: (0)

Offline pwig

  • Trade Count: (2)
  • Taperssection Regular
  • **
  • Posts: 181
Re: website help: linking to a folder rather than another webpage...
« Reply #5 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...

runonce

  • Guest
  • Trade Count: (0)
Re: website help: linking to a folder rather than another webpage...
« Reply #6 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)

runonce

  • Guest
  • Trade Count: (0)
Re: website help: linking to a folder rather than another webpage...
« Reply #7 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.

Offline pwig

  • Trade Count: (2)
  • Taperssection Regular
  • **
  • Posts: 181
Re: website help: linking to a folder rather than another webpage...
« Reply #8 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!

runonce

  • Guest
  • Trade Count: (0)
Re: website help: linking to a folder rather than another webpage...
« Reply #9 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...

Offline pwig

  • Trade Count: (2)
  • Taperssection Regular
  • **
  • Posts: 181
Re: website help: linking to a folder rather than another webpage...
« Reply #10 on: December 28, 2010, 09:04:16 PM »

Perfect - got it! Thank you!

 

RSS | Mobile
Page created in 0.06 seconds with 35 queries.
© 2002-2024 Taperssection.com
Powered by SMF