apache - redirect a domain with http to different domain with https -
apache - redirect a domain with http to different domain with https -
i have question regards redirecting domain http different domain https. have installed ssl certificate on domain www.some.com
( isn't wildcard, right www, , without on domain ), if go on https://www.some.com
or http://www.some.com
work correctly, request redirected https://www.some.com
.
then have bought other domain, example, test.org, if want redirect domain https://some.com
browser alert me ssl certificate valid some.com .
correct rewrite status have inserted was:
rewritecond %{http_host} ^test\.org$ [or] rewritecond %{http_host} ^www\.test\.org$ rewriterule ^/?$ "http\:\/\/some\.com\/" [r=301,l]
how can solve this?
you can utilize that:
rewritecond %{http_host} ^(www\.)?test\.org$ rewriterule ^/?$ http://some.com/ [r=301,l]
or final url (test.org/xxxx/yyy...)
rewriterule ^/?(.*)$ http://some.com/$1 [r=301,l]
but, don't know problem, or error...
apache .htaccess mod-rewrite redirect ssl
Comments
Post a Comment