Wordpress 使用来自未知来源的 301 重定向将 https 重定向到 http
Wordpress redirecting https to http with a 301 redirect from unknown source
我正在尝试将所有 http 流量重定向到 wordpress 中的 https。但我不知道为什么该网站只在前端进行完全相反的过程。我没有修改 .htaccess 文件,如果我尝试安装插件或插入任何新行以重定向流量,网站将进入无限循环。如您所见:https://gyazo.com/24c54632e151194a2ad58ce2fb8dbf4b https://gyazo.com/2e64095e3e3895e53aa3f82b77f12003
有人知道如何找到这个重定向的来源吗?
如果你很好奇,那是网址:https://gazzettadegliesports.it
更新:.htaccess 文件
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress
我的下一个直觉是检查您的 SSL 证书是否有效并且确实有效:https://www.sslshopper.com/ssl-checker.html#hostname=gazzettadegliesports.it
下一次检查是 Sucuri,并且怀疑您有一些恶意软件:
https://sitecheck.sucuri.net/results/gazzettadegliesports.it
最好先清理一下。然后,我建议 Really Simple SSL plugin for WordPress.
我正在尝试将所有 http 流量重定向到 wordpress 中的 https。但我不知道为什么该网站只在前端进行完全相反的过程。我没有修改 .htaccess 文件,如果我尝试安装插件或插入任何新行以重定向流量,网站将进入无限循环。如您所见:https://gyazo.com/24c54632e151194a2ad58ce2fb8dbf4b https://gyazo.com/2e64095e3e3895e53aa3f82b77f12003
有人知道如何找到这个重定向的来源吗?
如果你很好奇,那是网址:https://gazzettadegliesports.it
更新:.htaccess 文件
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress
我的下一个直觉是检查您的 SSL 证书是否有效并且确实有效:https://www.sslshopper.com/ssl-checker.html#hostname=gazzettadegliesports.it
下一次检查是 Sucuri,并且怀疑您有一些恶意软件: https://sitecheck.sucuri.net/results/gazzettadegliesports.it
最好先清理一下。然后,我建议 Really Simple SSL plugin for WordPress.