2010-09-13 90 views
1

你好,我试图让我的网址为用户尽可能友好......到目前为止,我还设法删除的index.php(带的.htaccess)。我将$route['default_controller'] = "myController";所以我的主页的网址是因为它看起来像localhost/myController但所有其它的URL的结构为localhost/myRoot/myController/function有没有办法让我的网址的用户更友好相当不错的?笨用户友好的URL

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

我的文件结构是这样的:

xampp 
    htdocs 
     myRoot 
      application 
      controllers 
       myController.php 

回答

1

你可以设置你的路由是不管你喜欢http://codeigniter.com/user_guide/general/routing.html

+0

谢谢为答案...我编辑我的问题你能提出一个例子的解决方案吗? – rabidmachine9 2010-09-13 13:31:31

+0

你的网站的结构是什么?它是localhost然后一个文件夹,然后你的索引? – Paul 2010-09-13 13:51:50

+0

我给我的结构的描述,也许我不应该包括XAMPP和htdocs目录但或多或少吧...希望帮助,在此先感谢! – rabidmachine9 2010-09-13 14:06:52