Cartika Support Portal

            Force SSL with htaccess on linux

            if you already have a .htaccess just edit it using the same command above. Add the following contents to it:

            SSLOptions +StrictRequire
            SSLRequireSSL
            SSLRequire %{HTTP_HOST} eq "domainname.com"
            

            Save and exit. Make sure that the permission for .htaccess file is set to 644.

            Updated: 05 Jul 2018 02:01 PM
            Helpful?  
            Help us to make this article better
            0 0