|
Posted by Jean-Yves Simon on August 20, 2004, 11:25 am
Please log in for more thread options
Hi,
I have a little problem and I was hoping that someone could help
me.
I have installed on my PC, the server web apache. Eveything works
fine and I have started to create some pages.
In the main directory of apache, I have my main page.
In the c:/siteweb, I have an html page to display some pictures.
By themselves, those 2 pages are displayed correctly. It is when
I want to link them together I have some problems.
On the main page (index.html), I have placed a gif file that
when clicked should load the the page inside the siteweb.
The first version of the index.html was a link to the photos.html
hfref="file:///c:/siteweb/photos.html"
but when I click the gif file, I can see the url displayed on the
status bar of mozilla, but when I click, nothing happens.
I changed to href="c:/siteweb/photos.html", then I am getting
an error saying the c is not a registered protocol.
Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server.
I precise that everything is local, to access my home page,
I type in mozilla http://10.0.0.1 where 10.0.0.1 is my local IP adress given by my router.
Thanks in advance.
--
Jean-Yves SIMON E-mail : jysimon@tif.ti.com
|
|
Posted by Jukka K. Korpela on August 20, 2004, 12:23 pm
Please log in for more thread options
jysimon@rdss388.tif.ti.com (Jean-Yves Simon) wrote:
> The first version of the index.html was a link to the photos.html
>
> hfref="file:///c:/siteweb/photos.html"
Why? Apart from the misspelled attribute name, there's the problem that
you are referring to a file with a file: URL which is by definition
strongly machine-dependent. When moving pages onto the Web, or even
inside your own disk, such URLs need to be fixed. Use relative URLs like
href="photos.html" instead.
> I changed to href="c:/siteweb/photos.html", then I am getting
> an error saying the c is not a registered protocol.
Not surprisingly.
> Then href="/siteweb/photos.html", but then mozilla displays
> an error saying that url siteweb/photos.html is not on the server.
Well, is it there? The URL used is relative to a server root, with the
server defined by the base URL, which had better be defined.
> I precise that everything is local, to access my home page,
Well, then it's not authoring for the WWW, is it?
--
Yucca, http://www.cs.tut.fi/~jkorpela/ Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
|
|
Posted by Jean-Yves Simon on August 20, 2004, 1:37 pm
Please log in for more thread options Hi,
Thanks for your reply.
Jukka K. Korpela (jkorpela@cs.tut.fi) wrote:
> jysimon@rdss388.tif.ti.com (Jean-Yves Simon) wrote:
> > The first version of the index.html was a link to the photos.html
> >
> > hfref="file:///c:/siteweb/photos.html"
> Why? Apart from the misspelled attribute name, there's the problem that
> you are referring to a file with a file: URL which is by definition
> strongly machine-dependent. When moving pages onto the Web, or even
> inside your own disk, such URLs need to be fixed. Use relative URLs like
> href="photos.html" instead.
This is what I liked to do. So now, I have to find where to reference
the c:/siteweb path so that photos.html can be appended after this
path (if I understand correctly).
> > I changed to href="c:/siteweb/photos.html", then I am getting
> > an error saying the c is not a registered protocol.
> Not surprisingly.
> > Then href="/siteweb/photos.html", but then mozilla displays
> > an error saying that url siteweb/photos.html is not on the server.
> Well, is it there? The URL used is relative to a server root, with the
> server defined by the base URL, which had better be defined.
Yes, I am sure it is there.
> > I precise that everything is local, to access my home page,
> Well, then it's not authoring for the WWW, is it?
I want to test it locally, before going to dyndns and "register"
a domain name. Is that not a good idea to test it locally ?
because from inside my nework, when I registered simon.myphotos.cc
I could not access my web site.
Thanks and regards
Jean-Yves.
|
|
Posted by Brian on August 20, 2004, 4:40 pm
Please log in for more thread options Jean-Yves Simon wrote:
> I want to test it locally, before going to dyndns and "register" a
> domain name. Is that not a good idea to test it locally ?
It is a good idea. And the best way to do it is to set up a web server
on your machine. Apache is free and available for Unix and Windows, at
least. Be sure to take some security measures to prevent outside access.
--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
|
|
Posted by Harrie on August 20, 2004, 11:56 pm
Please log in for more thread options Jean-Yves Simon said the following on 20/08/2004 14:37:
> I want to test it locally, before going to dyndns and "register"
> a domain name. Is that not a good idea to test it locally ?
> because from inside my nework, when I registered simon.myphotos.cc
> I could not access my web site.
Not really HTML related, but you could add:
127.0.0.1 simon.myphoyos.cc
... to C:WINNTsystem32driversetchosts (this path is for Win2k and
probably for WinXP, don't know for other Windows versions) so that it
does resolve to your PC.
--
Regards
Harrie
|
| Similar Threads | Posted | | how to reference an html page from another html page | March 7, 2008, 12:43 pm |
| How to reference page in iframe only? | February 28, 2005, 12:52 pm |
| Launching a page to a name reference | June 17, 2008, 1:16 pm |
| HTML reference guide | July 10, 2006, 1:31 am |
| unicode and numeric character reference in html | October 18, 2007, 4:12 pm |
| Amazon: "The Ultimate HTML Reference" (2008) | July 14, 2008, 11:23 am |
| Entity reference Difference? | July 27, 2007, 3:47 pm |
| [OT] SGML primer / reference? | July 10, 2008, 6:31 am |
| Making a relative reference use HTTPS? | February 4, 2006, 4:19 pm |
| Why does named anchor fail on first reference? | July 6, 2006, 3:06 am |
|