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. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
How can i redirect a certain webpage on the internet to another page on my laptop.? - Abdullah - 05-14-2014, 01:11 PM
[] - Ruan Caiman - 05-14-2014 01:24 PM
|
User(s) browsing this thread: 1 Guest(s)