基本上我想区分我的URL为最终用户和管理员。
按照笨规则的网址可以作为两端Codeigniter网址管理,即最终用户和管理员
www.mysite.com/[controller]/[method]
1)网址管理最终用户
当用户看到我的页面URL应该是一样笨治即
www.mysite.com/[controller]/[method]
2)管理员的网址管理
但我想s到添加一个唯一的段/control/
以服务为管理员像
www.mysite.com/control/[controller]/[method]
基本上在这里,我只是想增加一个段来区分终端用户
我在
.htaccess
使用一些
rewrite rules
作为
我的管理员权限
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
,如果有可能,请提供给我一个解决方案
非常感谢您
htaccess文件的CI https://gist.github.com/philipptempel/4226750,你应该使用CI'route.php'来重写URL – Girish