我想将https://www.subdomain.domain.com重定向到https://subdomain.domain.com
我试过了
RewriteEngine On
Options -MultiViews FollowSymLinks
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]但它并没有受到影响。请帮我找出一个解决方案
发布于 2011-09-16 20:17:18
你的重写规则很好。将此放在任何重写语句的上面:
RewruteEngine onhttps://stackoverflow.com/questions/7444306
复制相似问题