Some time the website do not run particularly in our Local System at that time we need to Add the host in our System to Add the host please follow the below steps:
1: In your Local system Run your Notepad++, you can download the Notepad++ from the link https://notepad-plus-plus.org/download/v7.6.4.html.
2: Once you installed the Notepad++ Run it as the administrator and from file section open the directory CDrive:\Windows\System32\Drivers\etc\hosts.
3: Once the host file opens you just need to Add two host in your Default host file as below:
server IP domainname
server IP www.domainname
4: Once its done just click on SAVE. Once its Saved your website will run fine.