I already tried couple solution from Google, but some of them didn't work (at all), others resulted in weird bug, where HTML page was loaded, but assets (CSS and images) didn't. Other times there were too many redirects and page freaked out. I have account on Cloud Flare, but both HTTP and HTTPS sites are accessible and changing setting that should redirect users to HTTPS, doesn't work.
So my question is how can I use .htaccess to redirect from (example)
http://www.daniweb.com
and http://daniweb.com
to
https://www.daniweb.com
To sum it up, if not HTTP, move to HTTPS, and to subdomain www
.
"If not starts with https://www
move to https://www
". Except in "htaccess"-language.