javascript を使用して次の URL に更新すると、codeigniter i18n 言語と $GET URL が機能しません
http://example.com/search?in=word&other=word2
それはただ行き
http://example.com/en/search
、$GET変数は失われます
私のhtaccessは次のようになります
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
最もエレガントなソリューションは何ですか
//一部のconfig/routes.php
$route['^(en|fr)/(.+)$'] = "$2";
$route['^(en|fr)$'] = $route['default_controller'];