Welcome Guest, Not a member yet? Register   Sign In
Forcing a redirect from HTTPS to HTTP for one controller
#1

(This post was last modified: 10-07-2022, 07:35 AM by php_rocs.)

Hi
I've implemented my CodeIgniter 2.x site on a server with SSL and have included a .htaccess file with all the relevant redirects to force HTTPS. However, I need one part of my site to remain HTTP and I'm struggling with this because of the way CodeIgniter processes requests through the index.php file. I want to keep mydomain.com/cron as HTTP and cron is of course a controller processed in the same way as all other controllers. So far, my .htaccess file looks like this:-

Thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB