.htaccess - httaccess redirects but issue with https -
i need redirect
to
i did using
rewriteengine on rewritecond %{http_host} ^(?:www\.)?example\.com$ [nc] rewriterule ^test/?$ https://user.example.com/test [nc,r=301,l] now issue is, if load user.example.com/test or http://user.example.com/test
i user.example.com/test need https://user.example.com/test
how modify or add rule so?
you need check https in rule.
rewriteengine on rewritecond %{https} !^on [or] rewritecond %{http_host} ^(www\.)?example\.com$ [nc] rewriterule ^test/?$ https://user.example.com/test [nc,r=301,l]
Comments
Post a Comment