Hi all,
Im preparing to switch my website to SSL certificate and i m looking for answer :
How set properly .htaccess file to make 301 redirect from http to https = to all urls. I dont want to lose any rank for http url, i make many work on SEO so i have to do it properly - but dont know how.
i found more tips to set htaccess but from non joomla/virtuemart forums, so they shold not work fine with joomla..?
to example
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.example\.com$
or here https://newevolutiondesigns.com/convert-http-to-https but it is different..
Please can anybody help me? :)
thank you very much, i have joomla 2.5.25 and virtuemart 2.6.10
RewriteRule (.*) https://www.example.com/$1 [R=301,QSA,L]
You could enable Force SLL in Joomla configuration. But this will not redirect static resources (e.g. images) and external scripts. For that you can use this:
QuoteRewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Quotethank you very much, i have joomla 2.5.25 and virtuemart 2.6.10
your site is insecure!
http://forum.virtuemart.net/index.php?topic=118683.msg402445#msg402445