PHP Applications & CMS Setup

How to Install Redmine

How to redirect my Joomla! site HTTP to HTTPS?

  1. Checklist for your set up

    To get SSL Certificate enabled for your Joomla site, you should have these followings in advance.

    SSL Certificate, which has been installed successfully on your server. You can learn about how to get SSL Certificate HERE.
    Your dedicated IP Address, which is unique for one SSL Certificate.

    Enable Force SSL in your Joomla site

    Configure your configuration.php file

    Open your configuration.php file

    Find the following line:

    var $live_site ='';

    Replace with:

    var $live_site = 'https://www.your-domain.com';

    Next, open .htaccess file then add the following code to the bottom of the file.

    RewriteEngine On
    RewriteCond %{HTTPS} OFF
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  2. enable Force SSL in your Joomla site

    In the Admin Panel, navigate through System >> Global Configuration or simply click the Global Configuration button.

    Within the Server tab, in the Server Settings section, there are 3 Force SSL alternatives that you can select, namely:

    • None: SSL will not be enabled in your Joomla site.
    • Administrator Only: connections to your administrator will be on HTTPS.
    • Entire Site: connections all over your website will be on HTTPS.

Joomla 1.5 and MariaDb – Collation problem

We found the hard way that all Joomla 1.5 ( yes there are still joomla 1.5 )  have problem with the collation of the database when you use  UTF 8 characters . After several experiments with collation we found in some blogs that the anwer is pretty easy. You have to change a line in the mysqli file in Joomla.

in  libraries/joomla/database/database/mysql.php

or (depending on your setting)

libraries/joomla/database/database/mysqli.php

comment the line 186

return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));

and add this instead (assuming these days you’ll have unicode supported database):

return 1;

the code looks like:

function hasUTF()
{
$verParts = explode( ‘.’, $this->getVersion() );
//  return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
return (1);
}