Change default controller URL in Magento

Sometimes it’s required to have some areas of you site to leave in non-standard urls. For better SEO or just because you want so. In this case Magento has an ability to rewrite default controller url to whatever you want. For example you want to hide your admin panel from unwelcome visitors. This is the simple one – and described in magento wiki with ability to even set this up as separate node.

You just need to change this:

to this

in your app/etc/local.xml.

But what about fronrend URL’s? Exactly the same thing! For example lets change default URL for my account pages. Add this lines in your module etc/config.xml:

clean cache and now all your urls changed from http://wwww.example.com/customer/* to http://wwww.example.com/user/*.


Yes, that simple! Hope that helps.


Rating:

Change default controller URL in Magento
5 (100%) 1 vote[s]

What do you think?

Required fields are marked *


*