panique / mini

Just an extremely simple naked PHP application, useful for small projects and quick prototypes. Some might call it a micro framework :)
1.35k stars 479 forks source link

Https problem #201

Closed Jakub41 closed 8 years ago

Jakub41 commented 8 years ago

Hello,

I'm using your framework for a school project and I have an issue with the https request. My problem is here: https://46.101.127.220/ How you will see the site is messy and I don't know how to fix this. One of the requirements of the project is to have SSL and HTTPS requests. Can you help me to understand how to fix this? I don't know if I need to fix something in the HTACCESS or in the code directly. Please help me. Thank you, Jakub

dvlden commented 8 years ago

Check the console @Jakub41... It's a mess because you are loading all of your images, styles and scripts through http:// and not https://.

I am not home, else I would download the mini and check out wether it has one http to https switch option or every request should be manually replaced. That's why I always use // instead of hard-coded protocol.

panique commented 8 years ago

Hey guys, you can edit this via

define('URL_PROTOCOL', 'http://');

in the file application/config/config.php ! But to be fair, I've not tested this feature personally... Can you please say if it works like it should ?

:)

Jakub41 commented 8 years ago

Il 08/01/16 10:46, Nenad Novakovic ha scritto:

Check the console @Jakub41 https://github.com/Jakub41... It's a mess because you are loading all of your images, styles and scripts through |http://| and not |https://|.

I am not home, else I would download the |mini| and check out wether it has one https switch option or every request should be manually replaced. That's why I always use |//| instead of hard-coded protocol.

— Reply to this email directly or view it on GitHub https://github.com/panique/mini/issues/201#issuecomment-169949222.

Thanks I was thinking the same I will check and see if I would be able to fix it

Jakub41 commented 8 years ago

Hey I changed to HTTPS in in the file application/config/config.php but get worst. Is possible to switch between the 2 because I have to show the project on both protocols?

jaonoctus commented 8 years ago

@Jakub41 try this:

define('URL_PROTOCOL', '//');
Jakub41 commented 8 years ago

Thank you I solved the problem :)

jaonoctus commented 8 years ago

:+1: