Wordpress 在所有URL上强制ssl
我在.htaccess文件中有这个文件来强制sslWordpress 在所有URL上强制ssl,wordpress,.htaccess,ssl,Wordpress,.htaccess,Ssl,我在.htaccess文件中有这个文件来强制ssl #force SSL <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> #强制SSL 重新启动发动机 重写条件%{HTTPS}关闭 重写规则^(.*)$https://%{HTTP_HO
#force SSL
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
#强制SSL
重新启动发动机
重写条件%{HTTPS}关闭
重写规则^(.*)$https://%{HTTP_HOST}%{REQUEST_URI}[L,R=301]
它似乎对我有用,但对我没用
如何在所有URL上强制使用ssl?已修复。我的.htaccess文件中存在冲突。我将强制ssl代码移到顶部,现在它可以工作了