admin管理员组文章数量:1432164
This is what I have done so far. In the settings in the admin I have updated the url to https e.g
But if i was to visit a page for example and remove https://www. from the url it would not redirect to and instead serve up the non secure link.
So i have tried adding a rewriterule in the htaccess file for example this
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ /$1 [R=301,L,NE]
In the hope that it would capture any non-secure link and redirect it to the secure link (this is what i would normally use for non-wordpress sites)
I have also tried
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
This is a duplicated question but I have tried all the other examples but nothing has worked.
本文标签: redirectWordpress site not forcing from http to https instead getting redirected too many times
版权声明:本文标题:redirect - Wordpress site not forcing from http to https instead getting redirected too many times 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745582857a2664723.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论