Page 1 of 1

Webserver: More than one web page

Posted: Fri Oct 28, 2011 6:58 pm
by EventGhost4ever
Good evening,

I can't link my webserverplugin-page with a second webpage. If I do this and open the second webpage I get only the error code 404 (nothing matches the given URI).

HTML-code: <a href="2webpage.htm"> Second Webpage </a>

The second webpage is in the same folder as the first page.
But there is a problem. I have to take the html-file (C:\Program Files\...\www\Webserver.htm) instead of my folder (C:\Program Files\...\www\) as my data directory in the plugin adjustments. Otherwise I can't open the first webpage.

I were happy, if anybody knows a solution?

Re: Webserver: More than one web page

Posted: Sat Oct 29, 2011 6:45 am
by Pako
Perhaps you need to add more information or attach your files and screenshots.
I tried to simulate your situation, but I have come across no problem.

Pako

Re: Webserver: More than one web page

Posted: Sat Oct 29, 2011 11:45 am
by EventGhost4ever
Webser-Plugin adjustments:
Plugin_adjustments.jpg
I have to take the html-file (C:\Program Files\...\www\Webserver.htm) instead of my folder (C:\Program Files\...\www\) as my data directory in the plugin adjustments. Otherwise I can't open the first webpage (Webserver.htm).

Webserver.htm:
<html>
<head> <title>EventGhost</title></head>

<body>
<a href="?Flurlicht_an"> Flurlicht an </a><br>
<a href="?Flurlicht_aus"> Flurlicht aus </a><br>
<a href="2webpage.htm"> Second Webpage </a>
</body>

</html>

2webpage.htm (same folder as Webserver.htm)
<html>
<head> <title>EventGhost</title></head>

<body>
Hello world!
</body>

</html>

Re: Webserver: More than one web page

Posted: Sat Oct 29, 2011 12:36 pm
by Pako

Code: Select all

<html>
<head> <title>EventGhost</title></head>

<body>
<a href="Webserver.htm?Flurlicht_an"> Flurlicht an </a><br>
<a href="Webserver.htm?Flurlicht_aus"> Flurlicht aus </a><br>
<a href="2webpage.htm"> Second Webpage </a>
</body>

</html>
Webserver.png
Webserver.png (4.5 KiB) Viewed 2350 times
Only directory!

Pako

Re: Webserver: More than one web page

Posted: Sat Oct 29, 2011 3:07 pm
by EventGhost4ever
Thanks Pako.

My problem was, that I used the URI without path (address.org/ instead of address.org/EventGhost.html).