Website redirecting to 127.0.0.1 Print

  • 3

Sometimes, your website may suddenly start to redirect visitors to http://127.0.0.1 instead of serving your website.

This redirect is caused by a rule set in the .htaccess file in your website. This redirect was added to your website because your website exceeded the resource limits too many times. You can see the resource usage of your website by going to the "CPU and Concurrent Connection Usage" in your cPanel.

To disable the redirect, simply remove the Redirect rule from your .htaccess rule. To do, so complete the following steps:
  1. Login to your cPanel and access the File Manager.
  2. Go to the main directory of your website.
  3. Enable hidden files (if you haven't done so already) by clicking Settings in the top right corner and ticking the Show Hidden Files box.
  4. Right click the file called .htaccess and select Edit.
  5. Remove the line with the contents "Redirect 301 / http://127.0.0.1" and save.
However, note that you may need to optimize your website to prevent your website from being taken down again.

Was this answer helpful?

« Back