[英]Secure URL is return ERR_TOO_MANY_REDIRECTS with WordPress
為什么用 WordPress 保護 URL 返回 ERR_TOO_MANY_REDIRECTS?
ERR_TOO_MANY_REDIRECTS
。This request has been blocked; the content must be served over HTTPS using httpd
This request has been blocked; the content must be served over HTTPS using httpd
,並且無法正常顯示。htaccess 文件:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
為 wordpress 子目錄文件夾添加.htaccess
文件。
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteRule ^(/)?$ index.php [L]
</IfModule>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.