how to create a new index.html - Error code explanation: 404 - Nothing matches the given URI.

4,808 views
Skip to first unread message

Mauricio Peña

unread,
Aug 8, 2013, 11:55:32 PM8/8/13
to web...@googlegroups.com
hi everybody,

I need to create a new index.html, but when i try to call the new index I recive the next error

Error response
Error code: 404
Message: Not Found.
Error code explanation: 404 - Nothing matches the given URI.

In my principal page index. i call the new index in the folder 
/home/pi/testWebiopi/testMauro/New

</head>
<body>

<h1>WebIOPi DEMO</h1>
<p>Domotic Test Raspberry PI</p>
<h2><a href="/home/pi/testWebiopi/testMauro/New">new page</a></h2>

        <div id="content" align="center"></div>
</body>
</html>

How to I resolve this problem?

attached files
thanks in advance
testMauro.7z

Toshi Bass

unread,
Aug 9, 2013, 5:02:02 PM8/9/13
to web...@googlegroups.com
Hi Mauricio
Error code explanation: 404 - Nothing matches the given URI. means your page cannot be found, I would guess that you are perhaps trying to give to much information in      <h2><a href="/home/pi/testWebiopi/testMauro/New">new page</a></h2>     what you need is the path from where you main index file is located like:- if your main index.html was in     /home/pi/testWebiopi     for instance then the link would be       <h2><a href="/testMauro/New">new page</a></h2>     try that.
 
Also had a very very quick look on your New / index.html file you need  to un-comment    //webiopi().refreshGPIO(true); delete // or you wont see your buttons.

hope it helps 

Toshi Bass 


Mauricio Peña

unread,
Aug 12, 2013, 10:44:24 PM8/12/13
to web...@googlegroups.com
thanks for answer.
I change the project folder to 
home/pi/testWebIOPI because is more short that the older.

the main index is locate  in home/pi/testWebIOPI ---> demo.html
and the new index.html its in home/pi/testWebIOPI/New ----> newIndex.html

on the main index put
<h2><a href="/testWebIOPI/New">new page</a></h2>

but still doesnt work 

Mauricio.

Mauricio Peña

unread,
Aug 13, 2013, 12:58:20 AM8/13/13
to web...@googlegroups.com
Hi Toshi,

problem solved.

<h2><a href="/New/newIndex.html">new page</a></h2>


Mauricio.



2013/8/12 Mauricio Peña <maurr...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/Px3gcScWpyg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages