If you need to get correct url in Magento admin you can use this code:
<?php $url = Mage::helper("adminhtml")->getUrl("package_module/controller/action"); ?>
On frontend you can use this code
<?php $url = Mage::getUrl('package_module/controller/action/', ['param_1' => $value]); ?>
Related posts:
How to Set Up Admin Dashboard
Setting Up Your Admin Dashboard
After downloading and installing Magento, the next step is the Da...
How to Setup A different Languages
Setting Up Magento In Multiple Languages
By default, Magento sites are built with English languag...
How to remove SID from URL?
Sometimes you can see SID part appears in your Magento URLs.
This part is needed for keep customers...
Search Engine Optimization for Store
Basic Guide To Search Engine Optimization In Magento
The need for search engine optimization in t...