In tp5, the general URL is like this
/article/id/5.html or /article/5.html
How to implement the following format/article_id_5.html/article_5.html
If written directly in the routing, it will prompt that the module does not exist
ringa_lee
In the configuration file config.php, in the URL setting section, there is a pathinfo_depr parameter configuration. The default is "/". You can just change it to the "_" you need.
"URL_PATHINFO_DEPR"=>"-" Add this to the configuration item
In the configuration file config.php, in the URL setting section, there is a pathinfo_depr parameter configuration. The default is "/". You can just change it to the "_" you need.
"URL_PATHINFO_DEPR"=>"-" Add this to the configuration item