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
確定確定讓我檢查:) –