How do you get secure or unsecure urls in magento? It's quite simple actually. We discussed about getting different base url types in previous blog post here - [Magento get base url].
Now we will show you how to get secure urls in magento. So in previous post we got base url as: