Switch to HTTPS URL After Installing to HTTP

General Informations BuildX


To apply SSL on your Perfex CRM installation you will need properly working SSL certificate installed on your server

You need to navigate to application/config/app-config.php and change the constant APP_BASE_URL from starting from http to https.

If you have already configured cron job with http:// starting url, make sure that you update the cron job url to start with https://


Changing the APP_BASE_URL to https will work good trying to force to https with .htaccess can cause problems and requires more advanced knowledge.

In case the .htaccess code below do not work on your server you need to consult with your server administrator to adjust the .htaccess code.

If you want to force it you will need to add suitable htaccess code to fit for your needs.
You can try this one and should work good:

RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Did you find this article useful?

  • Auto Update

    Category: System Update BuildX If you are using version 1.2.9 you will be able to perform auto-upd...
  • Manually Update

    Category: System Update BuildX Steps to perform before upgrading: Backup files and database...
  • Server Requirements

    Category: Installation BuildX PHP 8.1+ MySQL 5.1+ mod_rewrite Apache MySQLi PHP Extension PDO...
  • Installing on IIS – Windows Server

    Category: Installation BuildX You will need mod_rewrite enabled to apply the configs...
  • XAMP Installation

    Category: Installation BuildX Few changes we need to do in XAMPP default instal...