【发布时间】:2018-08-23 08:50:01
【问题描述】:
我创建了一个登录网站,我的网址变成了这样
http://localhost/koperasi/index.php/cukl/index
如何使我的网址像...
http://localhost/koperasi/index.php/cukl
因为我想做一个 crud 程序,但我认为我的 url 有问题
**
我以前的程序使用 http://localhost/lee/index.php/buku
所以我的页面可以在 http://localhost/lee/index.php/buku/ubah
上输入 CRUD 但现在我的新程序 url 是 http://localhost/koperasi/index.php/cukl/index
如何以及在哪里更改网址?在控制器中?模型?还是查看?
【问题讨论】:
-
尝试查看 .htaccess URL 重写。
标签: php codeigniter url