Step 1: Open the folder C:\Windows\System32\drivers\etc in your PC.
Step 2: Double-click on the ‘hosts’ file and choose Notepad from the list of available software.
Step 3: Input the following strings in the end of the document:
IP_address domainname.com www.domainname.com
Step 4: Save the changes.
Step 5: Now you need to clear the browser’s cache and re-open your domain name in it to see the changes.
Step 6: To revert the changes, you need to remove the new entries added to your host file or simply comment them by adding ‘#’ at the beginning of each line, then save the changes.