How to redirect http site to https using htaccess

Code to redirect http site to https using htaccess –

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>

 

For more related queries, please visit.
In case, if you did not find your solution or have any query/question, please contact us.

6 thoughts on “How to redirect http site to https using htaccess”

  1. Hey! Would you mind if I share your blog with my myspace group?
    There’s a lot of folks that I think would really enjoy your
    content. Please let me know. Thanks

  2. Thanks for your personal marvelous posting!
    I quite enjoyed reading it, you could be a great author.
    I will make certain to bookmark your blog and definitely will
    come back someday. I want to encourage you
    to ultimately continue your great posts, have a
    nice evening!

    Feel free to visit my web page – software akuntansi

  3. I am no longer positive where you’re getting your info, however great topic.
    I must spend some time studying more or figuring out more.
    Thank you for great info I was in search of this info for my mission.

  4. Heya i am for the first time here. I came across this board and I find It really useful & it helped me out much. I hope to give something back and aid others like you helped me.

Leave a Reply

Your email address will not be published. Required fields are marked *