index.html preview not as expected

WideMonk

New member
Joined
Oct 10, 2004
Messages
3
when i preview my index.html file, my frames are laid out correctly but in each one i just get in large bold letters "Error: Document not found" yet as i view my website offline, direct from my HDD, it works perfectly.

This is the first experience ive had with managing a website and find DirectAdmin extremely easy to use.. except for this one little hiccup.

(i have assumed that its only a preview and the fact its not yet registered with DNS isnt an issue)

Thanks very much, Wide
 
It sounds like a pathing issue.

In your source code, what do you have for the full path for the file that's not showing up?

The best way to do it to put all html files in the public_html directory and in your html source use this path:

/file.html

where file.html is the name of your file.

Jeff
 
YOu mean like this ?
Code:
<HTML>
<Title>10th Doncaster (Barnby Dun) Scout Group</Title>
<FRAMESET cols = 127,* BORDER = 0>
    <FRAME SRC = /contents.htm NAME = Contents NORESIZE SCROLLING = No> <!NORESIZE SCROLLING = No>

  <FRAMESET rows = 70,* BORDER = 0>
      <FRAME SRC = /header.htm NAME = Header NORESIZE SCROLLING = No>
      <FRAME SRC = /home.htm NAME = Main>
  </frameset>
</frameset>
</html>

Still not right. Do i seem to remember something similar to the http:// and mailto: prefixes ??
 
Yes, that is what I meant, but thinking about it, it probably won't work with previewing with a username preview ;( .

If you know how to put the domain name and it's IP# into your desktop system's hosts file (the location and method varies with different desktop operating systems), you should be able to see it properly.

Jeff
 
My webpage is now fully registered and live etc, but I still get the following 'Not found' error message.

"The requested URL /home.htm was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

It seems my initial frameset lays out properly (which tells me I've at least put it in the right directory) but doesnt display the relative files, Header, Contents & Home pages as shown in the code in my previous post.

What can be wrong?

Any help would be greatly appreciated
 
Back
Top