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]