【发布时间】:2018-06-24 11:41:55
【问题描述】:
我正在疯狂地尝试使用我们在谷歌云上的 wordpress 网站来重定向所有内容,例如 https://www。给https://example.com
我目前正在使用以下内容,这在示例中最引人注意:
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
它引导链接,例如; http://www.example.com 到 https://example.com
但它不会使用https://www 重定向链接。
任何帮助将不胜感激。
【问题讨论】:
标签: wordpress .htaccess redirect https