PHP codeigniter と chriskacerguis/codeigniter-restserver を使用しています。
ログ ファイルに 404 が表示されます。一部の方法で/indexが最後に追加されるためです。正しい URL はapi/CurrentYear です
DEBUG - 2016-02-02 02:14:48 --> UTF-8 Support Enabled
DEBUG - 2016-02-02 02:14:48 --> Global POST, GET and COOKIE data sanitized
ERROR - 2016-02-02 02:14:48 --> 404 Page Not Found: api/CurrentYear/index
/index が最後に追加される理由や解決策を教えてください。
私の .htaccess は次のようになります。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
RewriteRule (.+) index.php?p=$1 [QSA,L]
</IfModule>