Problems with Organising Website Files - Folders Stop My Pages from Displaying

This is a discussion on "Problems with Organising Website Files - Folders Stop My Pages from Displaying" within the Website Planning section. This forum, and the thread "Problems with Organising Website Files - Folders Stop My Pages from Displaying are both part of the Planning Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Planning Your Website > Website Planning

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 4th, 2007, 21:11
New Member
Join Date: Sep 2007
Location: UK
Age: 28
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Problems with Organising Website Files - Folders Stop My Pages from Displaying

New member, have I got this in the right one?

Hi, I have a problem which I can't quite get my head round, despite following several tutorials to the letter.

I have just built a site which has grown quickly in content. I put everything in one folder to begin with because I couldn't get anything to link to the index file or each other.

Now it's too big and on the pre-uploaded files, I am trying to organise them into a root directory with the index.html, index.css & common files such as some pictures and several sub directories.

But as soon as I put a new folder in the main one (the root), everything goes pearshaped and whatever is in the new folder does not display.

As I say, I have not uploaded this yet as I want it working. Is there something I'm missing out here? I'm just bunging new folders into the one that contains everything.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 4th, 2007, 21:31
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

Hello there, firstly welcome

As you create the folders are you changing the code for the links? e.g. if you were going to picture.jpg, you would now need it to say foldername/picture.jpg, if you're not doing that, then that's the problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 4th, 2007, 21:44
New Member
Join Date: Sep 2007
Location: UK
Age: 28
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

Thanks. Would I need to do that if the file is in the folder or is it just when its outside.

e.g. in Folder 2, a subfolder of Folder 1, would I put something like folder1/index.html to link outside to the homepage but not need it for img1.jpg that is inside Folder 2?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 4th, 2007, 21:49
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

wow how confusing.
you can do all your links relative to root.
so like this
folder 1:
href="/folder1/pic.gif"
folder 2
href="/folder1/folder2/pic.gif"
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 4th, 2007, 21:54
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

Quote:
Originally Posted by thebagman View Post
Thanks. Would I need to do that if the file is in the folder or is it just when its outside.

e.g. in Folder 2, a subfolder of Folder 1, would I put something like folder1/index.html to link outside to the homepage but not need it for img1.jpg that is inside Folder 2?
I'm slightly confused by your question here - just think of it like this, if what you are linking to is within the same top level or folder as the page you are linking from, then you don't need to include any folder name in the link, if however you are linking to something that is within another folder, then you need to name the folder and if it is within another sub-folder of that then you need to name the two folders in the order that they would be accessed to reach the file. I don't think I'm explaining it very well Just try and think of it in the same way as any file manager on your computer and the filename path that is used to access documents. Look at the example Alex just gave also.

Let me know if I need to try and explain it better!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 4th, 2007, 22:00
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

Quote:
Originally Posted by alexgeek View Post
wow how confusing.
you can do all your links relative to root.
so like this
folder 1:
href="/folder1/pic.gif"
folder 2
href="/folder1/folder2/pic.gif"
i should make this a bit clearer.
/ is the first folder after your website URL.
so you can linking to
href="/folder1/folder2/pic.gif"
would be the same as
href="www.mydomain.com/folder1/folder2/pic.gif"
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 4th, 2007, 22:02
New Member
Join Date: Sep 2007
Location: UK
Age: 28
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

Sorry. I know I'm being particularly dense about this. It's difficult to explain when I don't know what I'm talking about! Here's a link from a page:

<a href="index.html">Home</a>

Would that need changing to this on each page outside of folder 1 ?

<a href="/folder1/index.html">Home</a>



Thanks for your help Alex & Vanessa.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 4th, 2007, 22:09
New Member
Join Date: Sep 2007
Location: UK
Age: 28
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

It works! Thanks again both.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 4th, 2007, 22:10
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

okay, if you want to like to
yoursite.com/index.html
you just put:
<a href="/">Home</a>

contact in the root folder:
yoursite.com/contact.html
would be:
<a href="/contact.html">contact</a>

if doesn't matter where the files that contain these links are

so linking to /folder/img.jpg
yoursite.com/folder/img.jpg
would be
<a href="/folder/img.jpg">img</a>

hope that made sense
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 4th, 2007, 22:11
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

grr, i just wrote all that ha.
no worries
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Sep 4th, 2007, 22:12
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying

Quote:
Originally Posted by thebagman View Post
It works! Thanks again both.
Hurrah! You're welcome. I was in fact just going to suggest that you try it out to see if you had understood correctly!

Do post again if you have any more questions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
folders, organisatio, organization, root directory

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
php pages displaying nothing!? gBay PHP Forum 4 Jul 24th, 2007 20:29
Finding un-linked or un-used pages and files??? rjrichar40 Starting Out 3 Apr 19th, 2007 21:53
Displaying pages in a frame smokeythebear JavaScript Forum 1 Dec 25th, 2006 09:44
Fetching files/pages from one 'template' page The Hick Man PHP Forum 2 Feb 25th, 2006 16:23
Excluding Folders and Files in FSO devwantabe Classic ASP 3 Nov 12th, 2003 19:01


All times are GMT. The time now is 07:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42