こんにちは私はどこでも試しましたが、部分的な解決策があります:(
このようなURLがあります
http://www.somesite.com/about?koje=gore
オリジナルは
http://www.somesite.com/index.php/drey/about?koje=gore
.htaccess を追加
<IfModule mod_rewrite.c>
# Turn on URL rewriting
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
そしてindex.phpを削除しました
追加した
$route['default_controller'] = "drey";
$route["about"] = 'drey/about';
そしてコントローラを削除します。今、私はこの種のリンクを取得したいという問題があります
http://www.somesite.com/gore.html
routes.php でそれを行うことは可能ですか?