How to get Dynamic URLs in Magento PHTML

Published On November 14, 2012 | By Eirik | Magento

Magento dynamic URLs in PHTML

The following are methods to get the Magento Base URL, Magento Skin URL, Magento Media URL, Magento Js URL, to get the route URL, use either of the following codes:

Returns: http://yourstore.com/index.php/

Magento Store Media URL

Returns: http://yourstore.com/media/

Magento Theme Skin URL

Returns: http://yourstore.com/skin/

Current Magento Store URL

Returns: http://yourstore.com/

Magento JS URL

Returns: http://www.yourstore.com/js

Like this Article? Share it!

Leave a Reply