i want to redirect domain, example.com to https://www.example.com, is anyone can help me to provide redirect chain error free ht-access code.
I implemented this htaccess code on the website and mhy site show on the moz redirect chain error
RewriteCond %{HTTP_HOST} !=""
RewriteCond %{THE_REQUEST} ^[A-Z]+\s//+(.)\sHTTP/[0-9.]+$ [OR]
RewriteCond %{THE_REQUEST} ^[A-Z]+\s(./)/+\sHTTP/[0-9.]+$
RewriteRule .* http://%{HTTP_HOST}/%1 [R=301,L]