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!

IC
InMotion Hosting Contributor Content Writer II

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+