【发布时间】:2019-04-20 12:57:40
【问题描述】:
我正在尝试应用一组 htaccess 规则。
我想将所有 http 请求重定向到 https,并且所有请求都使用子域 webshop 而不是 www。
我查看了this thread,但无法理解如何将其应用于我的案例。
目前我有
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^playmobilland.dk [NC]
RewriteRule ^(.*)$ https://webshop.playmobilland.dk/$1 [L,R=301]
但这不会将 www 请求路由到 https。
如何添加重定向以将 www 请求也发送到 https?
【问题讨论】:
标签: apache .htaccess https subdomain