1

您好,我正在尝试使我的网址尽可能用户友好......到目前为止,我已经设法删除了 index.php(使用 .htaccess)并且我已经设置$route['default_controller'] = "myController";,所以我的主页的网址看起来很不错localhost/myController但是所有其他网址都具有结构localhost/myRoot/myController/function有没有办法让我的网址更加用户友好?

编辑:我希望我的结构是这样的:localhost/myController/myFunction

我的文件结构是这样的:

xampp 
     htdocs
        myRoot
           application
             controllers
                myController.php
4

1 回答 1

1

您可以将路线设置为您喜欢的任何路线http://codeigniter.com/user_guide/general/routing.html

于 2010-09-13T13:24:06.657 回答