Get Base Secure URL Without Index.php – Magento 1.7

base-urlmagento-1.7scriptsecure

I want to to get base-secure-url without index.php.

I enabled index.php for some reason. Now I have a PHP file at Magento root directory, and I want to call Magento secure pages from this PHP file.

Note: i have multi stores in my site

Please provide more ideas on this.

Best Answer

Mage::getStoreConfig(Mage_Core_Model_Url::XML_PATH_SECURE_URL);

I mention this because no one else has, but I prefer using Mage::getUrl or Mage::getBaseUrl. Both of those automatically detect if the page is already secure when you do not specify it.

Related Topic