ssl - .htaccess - two conditions – for https and for non-https subdomain -
is the SSL certificate for my site.
I'm using htaccess to redirect everyone to my site's https url
any typing http://www.example.com
or simply www ....
will be redirected to https address.
All this works well.
But now I have created a subdomain http://www.blog.example.com
This SSL is not protected so I do not need this URL Do not redirect to https
. As in my present form my HTACE:
Header set strict transport-security "maximum age = 31536000;" Rewighting On Rewriting% {HTTP_HOST} ^ example.com [NC] Reiteral Raul (. *) Https: //% {HTTP_HOST}% {REQUEST_URI} [L, R = 301, NC] rewrite% {HTTP_HOST} ^ Blog.example.com [NC] RewriteRule ^ (. *) $ Http://www.blog.example.com/$1 [R = 301]
Tried some things but does not work here but looking for other questions but their Solution to work Are there any help? Try
thanks
:
Header set strict transport-security "max-age = 31536000;" RivetInign On RewriteConnect% {HTTPS} RevokedConvert% {HTTP_HOST}! Blog \ .example \ .com $ [NC] rewrite% {HTTP_HOST} ^ www. [NC] Rewriteum ^ (. *) $ Https: //% {HTTP_HOST} / $ 1 [L, R]
Comments
Post a Comment