Need advice on .htaccess

So i want to direct all http://, http://www and www to https://

I hacked 2 codes together to make it work, and it does just fine, but I would like to know if there is a better way to write this than what I have. Also just to double check this isnt going to do something funky to my SEO or something.

What I have:

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^www.destinychildglobal.com [NC] RewriteRule ^(.*)$ http://destinychildglobal.com/$1 [L,R=301] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> 

I appreciate any help on the matter. :)

submitted by /u/JakeOfTheJungle
[link] [comments]

from web_design http://bit.ly/2IuRSnC
via IFTTT