前台:/index.php/Index/;
后台:/index.php/Admin/;
我只想前台隐藏index.php,前台是'URL_MODEL' => 2,后台是'URL_MODEL' => 0了。
我该怎么配置让前台隐藏index.php,后台就不隐藏了呢?
url rewrite 规则又应该怎么写呢?
我自己写的规则:<rewrite url="^(.*)$" to="~/index.php?s=$1" processing="stop" />
自己解决了,后台完整路径为:/Admin/index/index.html,一直没想到这个路径。另外发现前台config.php中配置'URL_MODEL' => 2无效,得在公共config.php中配置,后台的config.php中再配置为0,就OK了。
最佳答案