This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i redirect a certain webpage on the internet to another page on my laptop.?
05-14-2014, 01:24 PM
Post: #3
 
It can be done, but I think it's more effort than you were expecting - probably you can find instructions on youtube by searching "hosts file prank" but here are the basics -

You can't redirect a hostname to a local file.

But you can make a hostname point to your local computer by editing the HOSTS file - just do a web search for the hosts file on your os to get directions on how to do it, you'll just have to add a couple lines to point google to 127.0.0.1 (universal localhost IP) - one for google.com and one for http://www.google.com.

Now, your computer has to be running a web server - if you are running Windows, I like USB Webserver, you can just download it anywhere on your machine and run it.
http://www.usbwebserver.net/en/

If you're not on Windows, it should be even easier - just do a web search on how to run a web server on your OS.

Then copy your HTML code into the index.html of the web server's root folder.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[] - Mark - 05-14-2014, 01:18 PM
[] - Ruan Caiman - 05-14-2014 01:24 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)