SSL in CodeIgnitor |
[eluser]Jonny Noog[/eluser]
Hello, I've just installed a self-signed SSL certificate for my website (to be used for non-public admin purposes only) and I'm having some trouble getting CI to work with the https URLs. I think it has something to do with my mod_rewrite rules that I'm using to remove the index.php part of the URL. Some testing reveals: http://www.mydomain.com/controller/function - standard URL, works as expected https://www.mydomain.com/index.php/controller/function - secure URL with the index.php included, works as expected https://www.mydomain.com/controller/function - secure URL without the index.php, does not work, returns a 404 error, and this is my problem My rewrite rules: Code: RewriteCond $1 !^(\/css|\/pages) I'm not very experienced with mod_rewrite, can anyone give me some tips on how I might be able to modify my rules to allow hiding of the index.php with a https URL? EDIT: In fact there was nothing wrong with my rewrite rules. I just didn't realise that there is a separate apache virtual host block for the SSL version of my host and my configuration did not exist in this other virtual host block. So the problem was that it wasn't picking up any of my rewrite config at all. Added the same rewrite config to the relevant virtual host and now all is working. Time to go home. |
Messages In This Thread |
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:48 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:49 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:51 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:53 PM
SSL in CodeIgnitor - by El Forum - 11-19-2008, 06:54 PM
SSL in CodeIgnitor - by El Forum - 11-20-2008, 09:10 AM
SSL in CodeIgnitor - by El Forum - 12-02-2008, 09:14 AM
SSL in CodeIgnitor - by El Forum - 12-11-2008, 02:16 PM
SSL in CodeIgnitor - by El Forum - 01-12-2009, 06:57 PM
SSL in CodeIgnitor - by El Forum - 01-12-2009, 09:57 PM
SSL in CodeIgnitor - by El Forum - 01-13-2009, 10:04 AM
SSL in CodeIgnitor - by El Forum - 01-17-2010, 08:49 PM
SSL in CodeIgnitor - by El Forum - 02-03-2011, 08:31 AM
SSL in CodeIgnitor - by El Forum - 02-04-2011, 06:19 AM
SSL in CodeIgnitor - by El Forum - 03-10-2011, 12:17 AM
|