设置home/route/route.php
Route::rule('Goods/:goods_id','home/Goods/index');
那么前台URL链接就变成了www.**.com/home/Goods/53.html
问题来了,后台通过{:url('home/Goods/index'的方式打开浏览前台商品就出现了路由错误,依然是原来真实URL没法访问了,
就算在admin/route/route.php
Route::rule('Goods/:goods_id','home/Goods/index');
这样也没有用,因为生成的URL链接是www.**.com/admin/Goods/53.html
请问官方这么严重的问题怎么解决
最佳答案