鍍金池/ 問(wèn)答/PHP  HTML/ tp5 如何實(shí)現(xiàn)下圖路由?

tp5 如何實(shí)現(xiàn)下圖路由?

example:

url: domain/platform/controller/method/arg1/1/arg2/2 ..
如何 隱藏為 domain/1/2 or domain/12;

我的意思是我不想讓別人知道我的控制器名字/方法/參數(shù)名字/

![圖片描述][1]

回答
編輯回答
裸橙

配置下路由
Route::rule('domain/:arg1/:arg2','domain/platform/controller/method');

具體參考:
https://www.kancloud.cn/manua...

2017年11月11日 05:51