lolalola Posted July 5, 2014 Share Posted July 5, 2014 Hi, my Prestashop address: http://127.0.0.1/prestashop1551/en/music-ipods/2-ipod-shuffle.html (url with language) When i try get my store base dir in template with {$base_dir_ssl} i get address without language, why? How get full root dir with language (http://127.0.0.1/prestashop1551/en/)? Product url with lang i can get with getProductLink(), but i need only root address. Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 6, 2014 Share Posted July 6, 2014 instead of base_dir_ssl use {$content_dir} to get language code use {$lang_iso} Link to comment Share on other sites More sharing options...
lolalola Posted July 6, 2014 Author Share Posted July 6, 2014 Thanks Why {$content_dir} better than {$base_dir_ssl}? Link to comment Share on other sites More sharing options...
vekia Posted July 7, 2014 Share Posted July 7, 2014 the answer is: mixed content filtering {$base_dir_ssl} generates url with SSL {$content_dir} if you're connected with secured protocol - it will generate secured url, if you connected with simple http - it will generate also simple http Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted June 2, 2015 Share Posted June 2, 2015 With HSTS you should never be in http unsecure any longer. Link to comment Share on other sites More sharing options...
vekia Posted June 3, 2015 Share Posted June 3, 2015 With HSTS you should never be in http unsecure any longer. what you mean by HSTS ? Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted June 3, 2015 Share Posted June 3, 2015 Best defined here => http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security Link to comment Share on other sites More sharing options...
Recommended Posts