MAGENTO 1.X – REDIRECT TO URL IN FRONTEND


Sometimes you will need to create a validation once you are entering through an url, and then redirect the user to another site/section.

In this case, we want to get those uppercase non existing urls, and redirect the user to the corresponding existing lowercase url (Case insensitive).

To do so, i created the following local extension, catching the controller_action_predispatch event.

  • app/etc/modules/Offset101_UrlCustomization.xml
  • app/code/local/Offset101/UrlCustomization/etc/config.xml
  • app/code/local/Offset101/UrlCustomization/Model/Observer.php