Adding a prefix to every URL in CakePHP
问题 What's the cleanest way to add a prefix to every URL in CakePHP, like a language parameter? http://example.com/en/controller/action http://example.com/ru/admin/controller/action It needs to work with "real" prefixes like admin , and ideally the bare URL /controller/action could be redirected to /DEFAULT-LANGUAGE/controller/action . It's working in a retro-fitted application for me now, but it was kind of a hack, and I need to include the language parameter by hand in most links, which is not