I have changed my domain in HTTPS, but after this change my website (developed in kohana) don't work fine.
Any element (image, css, link, etc.) is in HTTP, not in HTTPS.
What is the problem?
Look at URL::base() function. Kohana automatically detect protocol.
So, if you use some (reverse)proxy to http server, this can happen.
Or in code you have forced to use http (URL::base(), URL::site().
URL::base()
URL::site()
You can overwride this by adding application/classes/URL.php file
application/classes/URL.php
class URL extends Kojana_URL { public static function base($protocol = NULL, $index = FALSE){ return self::base('https', $index); } }
Look at URL::base() function. Kohana automatically detect protocol.
So, if you use some (reverse)proxy to http server, this can happen.
Or in code you have forced to use http (
URL::base(),URL::site().You can overwride this by adding
application/classes/URL.phpfile