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.
|
|
|
|
|
![]() |
||
Problems with Organising Website Files - Folders Stop My Pages from Displaying
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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. |
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
||||
|
||||
|
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)
|
|
#5
|
|||
|
|||
|
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying
Quote:
Let me know if I need to try and explain it better! |
|
#6
|
||||
|
||||
|
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying
Quote:
/ 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)
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying
It works! Thanks again both.
|
|
#9
|
||||
|
||||
|
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)
|
|
#10
|
||||
|
||||
|
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)
|
|
#11
|
|||
|
|||
|
Re: Problems with Organising Website Files - Folders Stop My Pages from Displaying
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 |
![]() |
| Tags |
| folders, organisatio, organization, root directory |
| Thread Tools | |
|
|
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 |