最小化 codeigniter 的 url
minimizing url of codeigniter
如何最小化我的 codeigniter 项目 url
来自
http://localhost/newsite/news/readnews/20
到
http://localhost/newsite/news/20
或
http://localhost/newsite/20
您需要为此创建一条路线。将以下内容添加到路由配置文件中。
$route['news/(:num)] = "/news/readnews/";
如何最小化我的 codeigniter 项目 url 来自
http://localhost/newsite/news/readnews/20
到
http://localhost/newsite/news/20
或
http://localhost/newsite/20
您需要为此创建一条路线。将以下内容添加到路由配置文件中。
$route['news/(:num)] = "/news/readnews/";