Welcome Guest, Not a member yet? Register   Sign In
http to htts
#3

Instead of doing a, imo, ugly work around I would recommend that you use a .htaccess to redirect all HTTP requests to HTTPS.

You should not need to do anything else in CodeIgniter. However, don't forget to load any external assets (css, js and more) over HTTPS, or they will not load.

Here is all code you need in the .htaccess file
Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Some more information can be found here: https://stackoverflow.com/questions/4398...od-rewrite
Reply


Messages In This Thread
http to htts - by prodip56 - 03-31-2015, 04:28 AM
RE: http to htts - by cartalot - 03-31-2015, 10:32 AM
RE: http to htts - by silentium - 03-31-2015, 11:21 AM
RE: http to htts - by CroNiX - 03-31-2015, 01:44 PM
RE: http to htts - by prodip56 - 03-31-2015, 02:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB