我需要将我的WordPress站点中的一个页面从http重定向到https。我在网上搜索,但没有任何解决方案似乎工作。这是我在我的.htaccess文件中的代码:将重定向从http到https的特定页面在WordPress中.htaccess
# Redirect to force SSL on test page
RewriteCond %{HTTPS} off
RewriteRule ^test/$ https://www.example.com/test/ [R=301,L]
任何建议将不胜感激。
你确定这些规则高于你的htaccess文件中的所有wordpress规则吗? –