How to enable already installed ssl

Oweka Bob Patrick Posted in Technical Support 6 years ago

Thanks once again, Members of the Group, am having problem redirecting http://example.com to https://www.example.com and yet i have installed Let-script SSL in Cpanel before uploading my Ossn files. I tried to add this one in .htaccess but i couldn't find the folder, to add this code and even if i tried to create a folder with the name htaccess it said the file already exist. RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Could there be any easy alternative may be come up with a plugin to do it in just a click? thanks i will appreciate your support.

Replies
Indonesian Arsalan Shah Replied 6 years ago

it was easier if you just looked in the documentation https://www.opensource-socialnetwork.org/wiki/view/2671/how-to-enable-ssl-on-ossn

gb Rishi B Replied 6 years ago

cool, i think that should be the only thing you have to change, you shouldn't need to mess with any of the apache rules in the .htaccess file.

Uigur Oweka Bob Patrick Replied 6 years ago

Thanks i finally found it in the configurations files, i never thought it exist there, thanks a lot working well.

gb Rishi B Replied 6 years ago

have you updated ossn.config.site.php to use a url with https?