强制redirect到https在dreamhost的WordPress的htaccess的dreampress
目前在Dreamhost的dreampress上设置的共享主机的.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 我已经尝试了我可以find的每个例子(在这个网站和其他人),但我不断收到无限循环redirect。 以下是我迄今为止尝试过的一些不同的解决scheme:(在当前的WordPress规则testing之前, RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.[REDACTED].com/$1 [R,L] 也试过了(当前wordpress规则之前和之后): RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] 也试过了(当前wordpress规则之前和之后): RewriteCond %{HTTPS} !on RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] 也尝试了在Dreamhost自己的网站上列出的内容: https://help.dreamhost.com/hc/en-us/articles/215747758-How-do-I-force-my-site-to-load-securely-with-an-htaccess-file- […]