I seem to recall from the dim and distant past that is it possible to redirect a website to another one just on one pc. It was by editing the page file I think. What I want to do is just on my PC - if I type in www.ababab.com into my web browser I want it to go to www.cdcdcd.com (these websites are for examples only). What is the file and how do I edit it to do as I need please.
I realise that this could be used maliciously, so please answer as a private message.
I understand your concerns about malicious use, but the steps will only be performed with Windows and will require administrator rights. This subject will also be useful to other people looking for the same solution as you.
To redirect an URL to another URL as in your example, you can edit the Windows Hosts file. This method doesn't require any third-party tool.
First of all, open the Start menu, search for Notepad and choose to run it as administrator. Next in Notepad, go to File > Open.
Navigate to C:\Windows\System32\drivers\etc then select the Hosts file. Choose All files next to "File Name" to see it.
In the Hosts file, type the IP address of the site that you'd like to see and next to it, add the URL of the site that will redirect you:
To find the IP address, open Command Prompt and launch a ping command. Type
and you'll get the IP address of the site.
In case you want to reset the Hosts file to revert back to its default settings, follow the instructions described on this page, or you can simply remove what you added previously.