Answers for "subdomain redirect https"

0

subdomain redirect https

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} ^subdomain\.example\.com [NC]
RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Posted by: Guest on October-20-2021
0

subdomain redirect https

RewriteCond %{HTTP_HOST} ^((subdomain|www)\.)?example\.com [NC]
Posted by: Guest on October-20-2021

Browse Popular Code Answers by Language