请参阅 CodeIgniter 2 中的以下控制器
<?php
class user extends CI_Controller {
    function __construct() {
        parent::__construct();  
    }   
    function index($id) {
        // do something here    
    }
}
?>
所以我的网址是 http://mydomain.com/user/index/2
但我真正想要的是能够在 URL 中没有“索引”,所以 URL 将是 http://mydomain.com/user/2
有谁知道我怎么能做到这一点?
提前致谢