CodeIgniter is an open-source software rapid development web framework, for use in building dynamic web sites with PHP. If using CodeIgniter and the site is displaying as insecure or not secure, with a broken padlock, forcing HTTPS on the site may fix the problem.
Related Articles
Force HTTPS in .htaccess
Edit File with File Manager
Updating the Base URL
CAUTION: It is recommended to create a backup of the App.php (or config.php) file before making edits.
- Log into the appropriate cPanel
- Navigate to File Manager, located in the Files section
- Navigate to the site's document root and navigate to the folder App/Config in the document root
- Right-click on App.php and select Edit
IMPORTANT: On older CodeIgniter installations, this file is located at application/config/config.php rather than App/Config/App.php. - Under the section Base Site URL, change $config['base_url'] to the site's HTTPS address within single quotes
NOTE: The base URL may be set to APP_BASE_URL rather than the site's address. In this case, replace APP_BASE_URL with the secure domain URL in single quotes.
EXAMPLE: - Navigate back to the site's document root and locate the site's .htaccess file
NOTE: If .htaccess is not present, show hidden files in File Manager. - Force HTTPS in .htaccess