0

Zend languages is by default routing urls that way:

/en_US/mypage
/fr_FR/mypage

How can I change the route from 'en_US' to 'en' and 'fr_FR' to 'fr', example:

/en/mypage
/fr/mypage
user4857867
  • 127
  • 9

1 Answers1

0

You could simply process the url by cutting it up as a string. If its . Here is simplistic suedocode:

my_url = "http://whatever/en_US/mypage";
first_half = "http://whatever/en";
second_half = "/mypage";

my_url = first_half + second_half;