Error 6 (net :: ERR_FILE_NOT_FOUND): file or directory not found

Hi, I am a student and practice how to put a box like this, pasting the code into a simple html using notepad, here is a simple code that I write using a connection code:

<html> <head> <title>My Great Web page</title> </head> <body> <iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Febitesblog&amp;width=292&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true&amp;height=590" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:590px;" allowTransparency="true"></iframe> </body> </html> 

and when I try to execute in the browser, it says: This page not found Web page not found:

 file://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Febitesblog&width=292&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=590 Error 6 (net::ERR_FILE_NOT_FOUND): The file or directory could not be found 

hope guys it fix my problem, thanks :)

+4
source share
2 answers

This is not so, because // in this respect refers to the protocol, meaning that it loads the link / photo / like / field using the same protocol that is used to access the page itself.

  • When accessing the page via HTTP ( http:// ), Like Box will be enabled via HTTP
  • When accessing the page via HTTPS ( https:// ), the explicit block will be enabled via HTTPS

You get access to the file on localhost through the file protocol ( file:// ), which means that it tries to include the "Like" field the same way, which is invalid because your computer does not have the file "www.facebook.com`

Now use <iframe src="https://... and change it to <ifame src=//... when you upload to your server

+7
source
 <iframe src="//www.facebook.com/plugins/likebox... 

it should be...

 <iframe src="https://www.facebook.com/plugins/likebox... 
0
source

All Articles