How to customize the routing of php suffixes in ThinkPHP V5.1.18

in order for the links that have been sent by regular users to open properly, we have configured the following route, which indicates that
Route::rule (" my.php ", "my/view/info") cannot be found.

the following ones without .php can
Route::rule (" my ", "my/view/info");

Jul.29,2021

ext method

https://www.kancloud.cn/manua.


consider rewrite of nginx


ext('php')
Menu