CodeIgniter Forums
Controller not Working With HTTPS protocol - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: Controller not Working With HTTPS protocol (/showthread.php?tid=70223)



Controller not Working With HTTPS protocol - hmusman - 03-10-2018

hi, i used codeignitor many times but this issue is very strange for me 

Problem with HTTPS protocol

when i upload my code on hosting that have HTTPS protocol installed it cant access controller function check this

Default controller run first time 
https://sowportal.ml
but when i opened controller like this
https://sowportal.ml/proposal/new_proposal

it show me page not found error

Without HTTPS
i upload same code on my other hosting
http://businessholics.com/portal
it run normally 
and when access controller its working normally 
http://businessholics.com/portal/proposal/new_proposal

i also set https in base url

thanks
looking forward for your responce


RE: Controller not Working With HTTPS protocol - jreklund - 03-10-2018

It got nothing to do with https. It's not loading without it:
http://sowportal.ml/proposal/new_proposal

For some reason your host are not loading your .htaccess file.


RE: Controller not Working With HTTPS protocol - hmusman - 03-10-2018

(03-10-2018, 01:14 AM)jreklund Wrote: It got nothing to do with https. It's not loading without it:
http://sowportal.ml/proposal/new_proposal

For some reason your host are not loading your .htaccess file.

ok if u need i will share my .htaccess file


RE: Controller not Working With HTTPS protocol - enlivenapp - 03-12-2018

(03-10-2018, 01:14 AM)jreklund Wrote: It got nothing to do with https. It's not loading without it:
http://sowportal.ml/proposal/new_proposal

For some reason your host are not loading your .htaccess file.

Verified.  No .htaccess love.

PHP Code:
http://sowportal.ml/index.php/proposal/new_proposal
https://sowportal.ml/index.php/proposal/new_proposal
// works as expected