RetailMan ERP System Docs
Login

Enabling HTTPS Or SSL For RetailMan ERP System

Use HTTPS to secure traffic between users and RetailMan ERP System. Before forcing HTTPS in the application, make sure a valid SSL certificate is already installed for your domain or subdomain.


Before You Start

  1. Confirm the SSL certificate is installed on the server.

  2. Open your domain using HTTPS:

    https://yourdomain.com

  3. Confirm the browser shows the secure lock symbol.

  4. Continue only after HTTPS works directly.

If HTTPS does not open correctly, fix the SSL certificate first through your hosting panel, server control panel, or hosting provider.


Force HTTPS Redirect

If your installation uses Apache and the application root contains a .htaccess file, you can force all HTTP requests to HTTPS.

  1. Open the .htaccess file in the application codebase.
  2. Back up the existing .htaccess content before changing it.
  3. Add the HTTPS redirect rules above the public-folder rewrite rule.

Example:

RewriteEngine On

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

RewriteRule ^(.*)$ public/$1 [L]
  1. Save the file.
  2. Open the .env file.
  3. Update APP_URL so it uses https.

Example:

APP_URL=https://yourdomain.com
  1. Clear application/browser cache if needed.
  2. Open the application again and confirm it redirects to HTTPS.

Notes

  • Use your real domain or subdomain in APP_URL.
  • Do not force HTTPS until the SSL certificate is working.
  • If your server points directly to the public folder, the rewrite rules may be different.
  • If you use Nginx, configure HTTPS redirects in the Nginx server block instead of .htaccess.
Need Help?

Have a question about the software or documentation? Contact the team for help.

Explore RetailMan ERP System POS & ERP software