WordPress

FIX WORDPRESS “SORRY, YOU ARE NOT ALLOWED TO ACCESS THIS PAGE.”

解決方法

編輯wp-config.php檔案
將以下程式碼移至最上面優先執行,即可解決此問題。

if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false){
    $_SERVER['HTTPS']='on';
}

Have A Nice Day!

Leave a Reply

Your email address will not be published. Required fields are marked *