1
我想重定向到https://www.subdomain.domain.comhttps://subdomain.domain.comhtaccess的重定向://www.subdomain到https://子域
我试过
RewriteEngine On
Options -MultiViews FollowSymLinks
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
,但它不会受到影响。请帮我找出解决方案
这也是 –
@Nisanth我测试了你的重写规则,它很好!检查您是否拥有.htaccess权限,并且不会被其他.htaccess文件覆盖 – undone
确定确定让我检查:) –