简体   繁体   中英

Secure URL is return ERR_TOO_MANY_REDIRECTS with WordPress

Why Secure URL is return ERR_TOO_MANY_REDIRECTS with WordPress?

  • if i am using single index.php then https is working.
  • if i add wordpress project at same directory with WP_HOME = https then it return ERR_TOO_MANY_REDIRECTS .
  • if i add wordpress project at same directory with WP_HOME = http then it is working but console return 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 , and it is not display properly.

htaccess file:


# 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

Add .htaccess file for wordpress sub directory folder.

<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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM