略過並前往主要內容
致電我們
  • 香港 服務時間:9:00~18:00 周一至周五3018 8600
服務專線和服務時間
預約回電

無須線上等候,提交預約我們將儘快回電。

預約回電
說明中心

瀏覽我們線上說明資源

說明

GoDaddy 說明

Fix redirect loop error in WordPress

This error indicates that something is causing too many redirects and the server can't complete the request. This is typically caused by incorrect domain settings, but it can also be caused by third-party services like Cloudflare.

The error messages as seen in various browsers:

  • Google Chrome
          This page isn't working
          example.com redirected you too many times.
          Try clearing your cookies.
          ERR_TOO_MANY_REDIRECTS
        
  • Mozilla Firefox
          The page isn't redirecting properly
          Firefox has detected that the server is redirecting the request for
          this address in a way that will never complete.      
        
  • Microsoft Edge
          Hmmm...can't reach this page      
        

Note: Always back up your WordPress site before modifying any files.

  1. Connect to your website with an FTP client.
  2. Edit the wp-config.php file located in the remote directory where your WordPress site is located.
  3. Update or add the following lines below define('WP_DEBUG', false);:
        define( 'WP_SITEURL', 'http://example.com');
        define( 'WP_HOME', 'http://example.com');
    • WP_SITEURL is the Site Address (URL) in General Settings.
    • WP_HOME is the Site Address (URL) in General Settings.
    • Protocol should be either http or https, but never both.
    • Sub-domain should be with www or without www, but never both.
    • Domain can be different if the site requires it(e.g. http://example.com/blog).
  4. Save the changes.
  5. Clear your browser cache.
  6. Navigate to your site in a browser to test if the error is gone.

Next steps

More info

相關社群

Yagami's Avatar
wordpress infinite redirect loop

2 回覆

Last posted about 3 years ago.

scottfarms's Avatar
http to https index file looping

1 回覆

Last posted almost 2 years ago.

TotalltFedUp's Avatar
Complete Waste Of Time

3 回覆

Last posted over 3 years ago.

BRONZELOOK's Avatar
Open Graph URL Loop causing problems

6 回覆

Last posted 8 months ago.

ixikhalil's Avatar
Redirecting from example.com to www.example.com

4 回覆

Last posted over 4 years ago.

找不到主題嗎?搜尋社群