I’m having hard time trying to force https (ssl) to particular page on codeiginiter framework. I tried many ways, but none worked. The only way worked for me is changing the $config[‘base_url’] site link to begin with https instead of http. The result was that all links were set to ssl (the entire site), which is none sense because I don’t need to use the SSL everywhere. I used some php code in the login page, ut that made some troubles so I gave it up.
I want to know whether this is a good method how to do that, any idea?
Thanks,
You need add Condition on
.htaccessto make use SSL port work only for selected urls.Here is example, how to do
P.S : Your
base_urlmust be set to“/”in your config file.For more information check http://codeigniter.com/wiki/SSL_Handling