Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new site - problem with links

Status
Not open for further replies.

DataDuck

Technical User
Sep 22, 2004
8
US
Hi... I had to fire my web guy and now am trying to do it on my own. I was able to upload the file "index" and works fine, but none of the links to the other pages work -- keep getting a 404 error message. When I look at the same index.htm files on my c: drive, the linking pages work fine. I welcome any and all suggestions. Thanks.

Linda
 
This is probably because the links are absolute not relative, and they are pointing to the hard drive. You want your links to be like
Code:
<a href="index.htm">link thing here </a>
assuming all your files are in the same folder.
Also ensure you have uploaded ALL the files, as they all need to be on the server for the web browser to be able to find them.
also check that the links are EXACTLY as the files are named, as if you are on a linix based server, it will be case sensitive, and Idex.htm is not the same as index.htm (check file extensions too- make sure if the file says htm you don't put html as the extension on the link)

If this doesn't help, please post a link to the page you do have online, and we'll have a look at the code for you.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Thanks for the input - I will look at everything tomorrow. The site is DBSLists.com if you want to take a look BUT please keep in mind it is very much a beginning work in progress.

Thanks again.

Linda
 
Wow, there's one helluva lot of Microsoft-only code in there. I don't know what it's all doing, the only real difference I can see is that IE shows a gradient-filled background. If you're going to rub along without a "web guy", it might be better to start again with something simpler - it's going to be difficult to maintain a page that you don't understand, and you can achieve the same effect anyway with much less bloated markup.

That doesn't explain why your links aren't working though. Here's one of your links:
Code:
<a href="site%20w%20dbs%20lists%20at%20top_files/Page509.htm">Mailing Lists</a>
That's going to look for a file called "Page509.htm" in a directory called "site w dbs lists at top_files" ("%20" is URL encoding for a space) sitting below the directory in which your home page sits. Either the directory is missing, or the file is, or both.

Since I don't suppose you have hundreds of pages to organise, I suggest you put them all in the same directory as the home page - it'll be one less thing to worry about. Alternatively, if you want to use another directory, give it a snappier name that doesn't include any spaces (spaces in directory names are illegal on some servers, and a bl**dy nuisance on all of them IMO).

I think you'll find it easier to maintain the site if you give your pages meaningful names, "maillists.htm" instead of "Page509.htm" for example. It won't make any difference to the computer, of course, though it might get you some marginal benefit with search engines.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Only Frontpage generates code like that. What a pain!

I think Chris said it. If you can start again and simnplify.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Ok... I think I now have been able to make it work and the links seem to be working -- please feel free to review again for me.

I did not use Front Page, but rather Publisher which is why there is so much Microsoft code. Now that I am able to actually get the links working, I can proceed with revising.

Thanks for all your input.

Linda
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top