VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: parfumylacno on November 09, 2016, 13:48:26 PM

Title: how do properly 301redirect from http to https to all urls without lose SEO rank
Post by: parfumylacno on November 09, 2016, 13:48:26 PM
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]

Title: Re: how do properly 301redirect from http to https to all urls without lose SEO rank
Post by: Ghost on November 09, 2016, 14:42:19 PM
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]
Title: Re: how do properly 301redirect from http to https to all urls without lose SEO rank
Post by: K&K media production on November 10, 2016, 12:33:26 PM
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