CodeIgniter Forums
Helper for forcing https connection and forcing no-www URL. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Helper for forcing https connection and forcing no-www URL. (/showthread.php?tid=57414)



Helper for forcing https connection and forcing no-www URL. - El Forum - 03-13-2013

[eluser]mabasic[/eluser]
This is a simple rough around the edges helper for forcing your website users to use https and forcing no www URL's.

GitHub

It comes with a config file so you can turn it on or off as you please. It autoloads with your application and depending on your config it runs different functions at startup.

I could not use .htaccess on my server so this came as the next best thing, hope you can make use of it.
It is designed to work on heroku, but you can change one server variable name and it will work on most servers.


Helper for forcing https connection and forcing no-www URL. - El Forum - 07-17-2013

[eluser]quickshiftin[/eluser]
Thanks for sharing!