2
我最近增加了SSL到我的WordPress站點,現在如果有人去我的http站點,我想重定向他們到我的https站點。我曾嘗試下面的以下內容:htaccess wordpress 301重定向
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
但得到這個錯誤
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
我在做什麼錯?