View Full Version : Where do your other pages go?
birddog06
09-19-2008, 01:28 AM
I have built several other pages that are linked on my homepage, but where the heck do they go on the hostmonster host. My homepage is showing nicely but when I click on one of the links I get the dreaded 404 page error. The links are pointing correclty, I just need to know where I put the .html and the images for the other pages... You think they might of covered this for us newbies....
DataMan
09-19-2008, 04:02 AM
They go in your public_html directory (folder). Make sure your links are configured properly.
Suggest that you get a hold of a basic book or tutorial on html and website basics.
DataMan
pghcollectibles
09-19-2008, 07:44 AM
all files you want the public to be able to view go somewhere within your public_html folder.
you can put folders within folders within folders etc. stay organized. it will help you in the long run. if you have collections of pages and images that relate to one site they should be grouped together within a main folder. many people put their pictures in a folder called images, its just a sort of standard. you can name them whatever you want as long as you refer to them with the proper directory stucture and file name. (file names and directory names are case sensitive)
public_html/
index.php
welcome.php
public_html/contents/
article01.php
article02.php
etc.php
public_html/images/
logo.png
background.jpg
image.gif
public_html/anothersite/
index.php
welcome.php
public_html/anothersite/contents/
article01.php
article02.php
etc.php
public_html/anothersite/images/
logo.png
background.jpg
image.gif
in your main page (index.php) refering to your first article would be:
src="contents/article01.php"
a background picture for that page would be:
src="../images/background.jpg"
to link to your main page (index.php) on your other site from that article would be:
src="../anothersite" (the server will try to find the index page without you telling it to do so) or src="../anothersite/index.php" (for consistency)
its link to its first article is still src="contents/article01.php" (as it is named the same) because we are using relative addresses and not absolute ones. you could type the whole thing up but it is a waste of keystrokes, and would make it harder to just rename public_html/anothersite to public_html/abettername without changing anything else within that "site"
here is a link (http://www.w3schools.com) to bookmark, it will be of great help.
birddog06
09-19-2008, 10:28 AM
Thanks gang, got it to work, my file structure was a bit off.. I was trying to stay organized with folders and it got a bit out of hand....:o
pghcollectibles
09-19-2008, 10:57 AM
glad to hear you got it working
we've really just started to get user tutorials organized. mostly is has been "just search through all these threads till you find it"
if any of our moderators had nothing else to do ;), there have been many helpful solutions posted but they are all within threads and would need to be copied/ pasted into a more user friendly format in the user tutorial section. or even a link page thread ie:
problem:.............solution:
blah blah.............http://www.hostmonsterforums.com/showthread.php?t=4183
how do i..............http://www.hostmonsterforums.com/showthread.php?t=4183
now what............http://www.hostmonsterforums.com/showthread.php?t=4183
that might be the fastest way to do things.
i should have started a new thread with this, but ive seen on some forums where they add to the title of the thread: SOLVED
that could be implemented here as well though most threads started do get solved in their end
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.