Enabling HTTPS or SSL for ultimatepos

UltimatePOS

  1. Home
  2. Docs
  3. UltimatePOS
  4. Getting Started
  5. Enabling HTTPS or SSL for ultimatepos

Enabling HTTPS or SSL for ultimatepos

Before enabling http(s) make sure you have the certification installed in your server in the pos domain name.

To check if the certificate is working go to https://yourdomain.com. If it shows green secured then the certificate is installed and we’re ready to use it.

https enabled (shows green secured)

To force redirect every user to https follow the below steps:

  1. Inside pos codebase, you will find .htaccess file, open the file.
  2. This file will have some codes like this:
    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        RewriteRule ^(.*)$ public/$1 [L]
    </IfModule>

    Keep a back up of existing code and change the content to:

    <IfModule mod_rewrite.c>
        RewriteEngine On
        
        RewriteCond %{HTTPS} !on
        RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
        RewriteRule ^(.*)$ public/$1 [L]
    </IfModule>
    
  3. Refresh your browser and check. It should redirect to https by default.
Was this article helpful to you? Yes 1 No
🤔🤔 Got an Idea for UltimatePOS - Advance?✍ Share Idea
+ +