Switch Joomla! to HTTPS (SSL)
In this article, we will show you how to activate SSL encryption for your Joomla! website.
After you have secured your domain with an SSL certificate, you should switch your website to the HTTPS protocol. To do this, you must first activate HTTPS in the Joomla! settings and adjust the website path in the configuration.php file. Finally, set up a 301 Redirect from the HTTP address to the HTTPS address.
Requirements
The domain must be secured with SSL certificate.
For your website to use HTTPS, you must have connected your domain to an SSL certificate. You can check this by visiting your domain with https:// at the beginning (such as https://www.1and1help.com).
Activate an SSL Certificate Now
Find out more: Set Up an SSL Certificate Managed by IONOS
Customize Your Site URL
The site URL must be changed in the configuration.php file in the Joomla! webspace directory:
- Open the WebspaceExlorer, click on the clickandbuilds folder, and go to the directory of your Joomla! website.
- To the right of the configuration.php file, click Actions > Edit File.
Find the line public $live_site =''; and enter the HTTPS address of your website there.
public $live_site = 'https://blog.1and1help.com';
- Click Save.
Set Up a 301 Redirect
To set up automatic forwarding to the HTTPS website, you must edit your .htaccess file and add the following command lines (you will also find the .htaccess file in the Joomla! directory):
RewriteEngine On
RewriteCond %{HTTPS} OFF
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Your website now loads automatically with HTTPS.
Did this article help you?
Your feedback helps us to further improve our services. To leave feedback, log in to your IONOS account by clicking on the login button at the top right. You can then submit a rating below the article.