0
이 작업을 수행하기 위해 몇 가지 다시 쓰기 규칙을 시도했지만 여전히 https://www.*
으로 리디렉션됩니다.
달성하려는 목표는 www.sub.domain.com
에서 https://sub.domain.com
으로 리디렉션하는 것입니다.www.subdomain.com을 https://sub.domain.com으로 리디렉션
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{HTTP_HOST} ^sub\.domain\.net$ [NC]
RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]