News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

how do properly 301redirect from http to https to all urls without lose SEO rank

Started by parfumylacno, November 09, 2016, 13:48:26 PM

Previous topic - Next topic

parfumylacno

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]

Owner of e-shop https://www.parfumylacno.sk with perfumes FM Group

Ghost

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]

K&K media production