i18n URIs with CI Routing or mod_rewrite
问题 I'm trying to clean up my URIs on a multi-language CI site by changing the segment containing the language name to just the two-character language code. Currently, my URIs look like this: http://example.com // Home (English) http://example.com/english/home // Home (English) http://example.com/home // 404 (should go to english/home) http://example.com/sv // 404 (should go to swedish/home) http://example.com/swedish/home // Home (Swedish) http://example.com/sv/home // 404 (should go to swedish