問題描述:

不能登入 WordPress 管理面板,出現 404 錯誤頁面.

解決方法 1: 更新資料庫內地址

透過 phpMyAdmin 訪問資料庫, 嘗試更新資料庫內地址。

  1. 登入 cPanel, 單擊 DatabasesphpMyAdmin 。 (國內主機一般有一個資料庫管理,可以透過 phpMyadmin 登入)

    WordPress Admin Login 404 Issue - 10 Most Common WordPress Errors (+Solutions)

  2. 選擇 WordPress 資料庫如: Username_wrdp1.
  3. 選擇表 wp_options,(如果在安裝的時候,字首不是 wp,那麼這個表名是:你寫的字首_option, 單擊 Browse.

    WordPress Admin Login 404 Issue - 10 Most Common WordPress Errors (+Solutions)

  4. 單擊 option_name 欄位下 siteurl
  5. 點選 Edit Field.

    WordPress Admin Login 404 Issue - 10 Most Common WordPress Errors (+Solutions)

  6. Change the URL in the input box of option_value.

    WordPress Admin Login 404 Issue - 10 Most Common WordPress Errors (+Solutions)

  7. 在頁面底部單擊 Go 按鈕.

解決方法 2: 更新資料夾屬性

  1. 透過 FTP 瀏覽到 “/wp-admin” 資料夾。
  2. 右擊該目錄,點選 File Attributes.
  3. 設定為 755 ,如果有 Recurse into subdirectories 選項則勾選。

    WordPress Admin Login 404 Issue - 10 Most Common WordPress Errors (+Solutions)

  4. 單擊 OK.
  5. 對於 /wp-content 和 wp-includes,重複 1-4 步。
  6. 開啟瀏覽器看看情況如何,記得 CTR+F5 重新整理。