Last updated December 6th, 2023 00:05
Vtiger CRM system is a comprehensive software solution for customer relationship management (CRM), which serves for efficient organization and automation of business processes. This system allows companies to track, manage, and optimize all interactions with their customers. Like any other content management system or CRM, Vtiger also requires encrypted server-client communication for its secure operation. However, after transitioning to HTTPS, the protocol often doesn’t work properly, and the system keeps forcing traffic to HTTP. In this article, we will explore how to fix non-functional HTTPS in Vtiger CRM with two steps, specifically how to make the system exclusively and solely operate with the HTTPS protocol upon activating an SSL certificate.
How to fix non-functional HTTPS in Vtiger CRM with two steps
Once you activate an SSL certificate on your server, you may notice that Vtiger still runs under the original HTTP, even if you directly type HTTPS into the URL address. The system automatically switches back to HTTP mode. If you try to enforce encrypted communication through automatic redirection based on rules in the .htaccess file, it leads to a loop. This loop causes the entire website to crash. However, the solution is straightforward.
Configuration File config.inc.php
The Vtiger CRM system has all its configuration stored in the config.inc.php file in the root directory. Therefore, log in to FTP and edit this file. Locate the following lines within it:v
$dbconfigoption['ssl'] = false;
$site_URL = 'http://example.com/'
As you may notice, Vtiger often has the HTTP traffic hardcoded in its configuration. It redirects the website to it under all circumstances. In this file, overwrite the URL address with https://. After making the address changes in the file, save it.
Additional Automatic Redirect to HTTPS
With the above modification, you ensure that the website functions under encrypted connections. For automatic redirection, modify the .htaccess file. Insert the following rules for redirecting the website to HTTPS traffic, with adjustments made for PHP 8 operation.
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,QSA]
Conclusion
After modifying the configuration file config.inc.php and also making changes to the .htaccess file, you will achieve full functionality of the CRM system under HTTPS, completely automatically.
The website is created with care for the included information. I strive to provide high-quality and useful content that helps or inspires others. If you are satisfied with my work and would like to support me, you can do so through simple options.
Byl pro Vás tento článek užitečný?
Klikni na počet hvězd pro hlasování.
Průměrné hodnocení. 0 / 5. Počet hlasování: 0
Zatím nehodnoceno! Buďte první
Je mi líto, že pro Vás nebyl článek užitečný.
Jak mohu vylepšit článek?
Řekněte mi, jak jej mohu zlepšit.
Subscribe to the Newsletter
Stay informed! Join our newsletter subscription and be the first to receive the latest information directly to your email inbox. Follow updates, exclusive events, and inspiring content, all delivered straight to your email.