apache - httaccess redirect 1 domain to http, others to https. all for non-www -
i use htaaccess load magento websites. problem have 1 domain without ssl, possible redirect 1 domain http, while others redirected https. domains should point non-www version.
my current htaacces:
options +symlinksifownermatch rewriteengine on rewritecond %{http_host} ^www\.(.*)$ [nc] rewriterule ^(.*)$ http://%1/$1 [r=301,l] rewritecond %{http_host} .*abc\.com [nc] rewriterule .* - [e=mage_run_code:abc] rewritecond %{http_host} .*abc\.com [nc] rewriterule .* - [e=mage_run_type:website] rewritecond %{http_host} .*qwe\.de [nc] rewriterule .* - [e=mage_run_code:qwe] rewritecond %{http_host} .*qwe\.pl [nc] rewriterule .* - [e=mage_run_type:website] rewritecond %{http_host} .*zxc\.fr [nc] rewriterule .* - [e=mage_run_code:zxc] rewritecond %{http_host} .*zxc\.fr [nc] rewriterule .* - [e=mage_run_type:website]
i qwe.de redirected http. while other domain should point https. help!
this problem htaccess not magento
try this
rewriteengine on rewritecond %{http_host} ^metrikstudios\.com [nc] rewritecond %{https} off rewriterule ^(.*)$ https://%{http_host}%{request_uri}
Comments
Post a Comment