Amjad Ali Amjad Ali - 27 days ago 7
PHP Question

Website shows 404 not found nginx?

Recently i have transferred my site and domain from 1and1 to inmotionhosting.com. When i tried to visit my website (www.wapgee.com). It shows this error:

enter image description here

Please tell me how to solve this problem?

This is my error log

[Wed Nov 09 02:38:23.846102 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.694511 2016] [:error] [pid 663540:tid 139899990714112] [client 144.76.13.209:64845] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.542651 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.391229 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.088840 2016] [:error] [pid 663540:tid 139899990714112] [client 144.76.13.209:64845] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:30:14.558814 2016] [:error] [pid 572374:tid 139899906787072] [client 141.8.143.213:57443] File does not exist: /home/wapgee/public_html/index.php

Answer

First you need to remove dns cache, lets done it

Windows 7 and Vista:

  1. Click on the Start Menu
  2. Type cmd in the search box
  3. Right click on cmd in the programs search results and choose Run as Administrator

Windows 98/NT/2000/XP

  1. Click on the Start Menu Select Run
  2. Type or select cmd to open the command line window

Once the cmd opens type this command:

ipconfig /flushdns

Then you need to clear your browser chache:

Google chrome: https://support.google.com/accounts/answer/32050?hl=en

Firefox: https://support.mozilla.org/en-US/kb/how-clear-firefox-cache