1. Acquire an SSL/TLS certificates
You will have to acquire an SSL/TLS certificates on your web site. You may acquire a free SSL/TLS certificates from Let’s Encrypt, or you should buy one from a certificates authority (CA) corresponding to Sectigo/Comodo, RapidSSL or GeoTrust.
2. Set up the certificates
Upon getting obtained the SSL/TLS certificates, you will have to put in it in your net server. The method for putting in the certificates will rely on the net server software program you’re utilizing. Listed below are over 50 SSL set up guides overlaying numerous servers.
3. Configure Drupal to make use of HTTPS
After you’ve put in the SSL/TLS certificates, you will have to configure Drupal to make use of HTTPS. To do that, you will have to change the settings.php file positioned within the websites/default listing of your Drupal set up. You will have so as to add the next traces of code to the settings.php file:
$base_url = 'https://www.yourwebsite.com'; $conf['https'] = TRUE;
Exchange “www.yourwebsite.com” together with your web site’s area identify.
4. Replace inner hyperlinks
After enabling HTTPS, you will have to replace any inner hyperlinks inside your Drupal web site to make use of the HTTPS protocol. You need to use the “Search and Exchange” module to replace all of the hyperlinks.
5. Take a look at your web site
Lastly, you need to take a look at your web site to be sure that all the pieces is working accurately. You need to use a web based software like SSL Labs to check your SSL/TLS configuration and make sure that your web site is absolutely secured.
By following these steps, you may allow HTTPS in your Drupal web site and safe your customers’ knowledge.