CodeIgniter Forums
HTTPS Best Practices for CodeIgniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: HTTPS Best Practices for CodeIgniter (/showthread.php?tid=77188)



HTTPS Best Practices for CodeIgniter - mlurie - 07-30-2020

What is the best practice to force HTTPS for an entire project? Should a rule be added to .htaccess or should the force_https() function be used with a filter that is applied to all routes?  Is there a better way that I am missing?


RE: HTTPS Best Practices for CodeIgniter - php_rocs - 07-30-2020

@mlurie,

That question has been asked many times on the forum. I sure that there is a solution that fits your needs there... https://forum.codeigniter.com/search.php?action=results&sid=8662c921d1ef9c454b9a3ba8ccc5fcff&sortby=lastpost&order=desc