Cara Force SSL of Framework Code Igniter 4

How do I force SSL on a website that uses the Code Igniter 4 framework? Most websites that use the Code Igniter 4 framework will usually be damaged if they don't force HTTPS, because there are several components that still use HTTP only.


  • Go to File Manager, then to your website's root document.
  • Go to app/Config/App.php
  • Then search for the word forceGlobalSecureRequests
  • Change the variable from false to true


By default the setting uses false, therefore it must be modified so that the appearance of a website that uses the Code Igniter 4 framework is not messy.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.