Forcing PHP-Fusion to work over SSL

In this tutorial we will show you how to make visitors use the secure SSL address (https://) for your PHP-Fusion website. This is important if you want data from the site transmitted over an encrypted ssl connection. We must first update the setting in the Admin Panel, then use the .htaccess to force people to connect using the secure https:// address.

Forcing SSL on the https for PHP-Fusion

  1. Login to the PHP-Fusion Admin Panel.
  2. Click the Settings tab, then click the Main button.
  3. To the right of the Site Protocol option, click the drop-down box and select ‘https’ option.
  4. Click the Save Settings button on the bottom to record your change.
  5. Next, edit your .htaccess file, which should be in the root of your PHP-Fusion install directory. Add the following code to the .htaccess file, be sure to replace example.com with your actual domain name:

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

    Save your changes. Now, when you navigate to your website it will redirect you to the https:// version of the website.

Congratulations, now you know how to make visitors use the secure SSL address (https://) when connecting to your PHP-Fusion website!

JB
John-Paul Briones Content Writer II

John-Paul is an Electronics Engineer that spent most of his career in IT. He has been a Technical Writer for InMotion since 2013.

More Articles by John-Paul

Was this article helpful? Join the conversation!