tag:blogger.com,1999:blog-8046367200217729421.post6200819434081454027..comments2023-12-31T00:49:00.942-08:00Comments on Webdosh: Https / Secure URL for Magento LinksJanzhttp://www.blogger.com/profile/01005318851138902795noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8046367200217729421.post-33212888968497197202014-01-30T00:17:37.483-08:002014-01-30T00:17:37.483-08:00Hi
Thanks for sharing..Hi <br /><br />Thanks for sharing..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8046367200217729421.post-84250797507943175642012-06-05T22:15:16.099-07:002012-06-05T22:15:16.099-07:00Hi Nicolas,
Try using:
Mage::getUrl('', ...Hi Nicolas,<br /><br />Try using:<br /><br />Mage::getUrl('', array('secure'=>true)) . 'media/paymentlogo/' . $logo;<br /><br /><br />Let me know if it works?<br /><br />- JanzellJanzhttps://www.blogger.com/profile/01005318851138902795noreply@blogger.comtag:blogger.com,1999:blog-8046367200217729421.post-90297482463331972652012-06-05T19:18:31.001-07:002012-06-05T19:18:31.001-07:00Hi,
I hope you can help me.
I have the following...Hi,<br /><br />I hope you can help me.<br /><br />I have the following code whch end in HTTP, but I need it in HTTPS:<br /><br />return Mage::getUrl('media') . 'paymentlogo/' . $logo;<br /><br />Gives: http://www.peta.cl/media/paymentlogo/default/mp10_1.gif<br /><br /><br />I try using many options from your example to get the HTTPS, but none of them worked for me:<br /><br />return Mage::getUrl('media', array('secure'=>true)) . 'paymentlogo/' . $logo;<br />Gives [Wrong]: http://www.peta.cl/media/index/index/secure/1/paymentlogo/default/mp10_1.gif<br /><br />return Mage::getUrl('media' . 'paymentlogo/' . $logo, array('_secure'=>true));<br />Gives [Wrong]: https://www.peta.cl/mediapaymentlogo/default/mp10_1.gif/<br /><br />return Mage::getUrl('media' . '/' . 'paymentlogo/' . $logo, array('_secure'=>true));<br />Gives [Error]: https://www.peta.cl/media/paymentlogo/default/<br /><br />Any idea ??<br /><br />Appreciate your help from Chile !<br /><br />Regards,<br /><br />NicolasAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8046367200217729421.post-2350131912427689662011-05-18T03:06:37.516-07:002011-05-18T03:06:37.516-07:00Hey Paul,
Thanks for sharing, that was also great...Hey Paul,<br /><br />Thanks for sharing, that was also great tips.Janzell Jurillahttp://www.webdosh.netnoreply@blogger.comtag:blogger.com,1999:blog-8046367200217729421.post-23219392750224028982011-05-18T02:29:20.866-07:002011-05-18T02:29:20.866-07:00You can check to make sure that the URL should be ...You can check to make sure that the URL should be secure by using the Mage::getSecure() function, which returns a boolean value. load it via Mage::getModel('core/url')->getSecure();Paul Cleggnoreply@blogger.com