Transfer from Http://document.thinkphp.cn/manual_3_2.html#module_deploy
If you do not want users to access a module directly, you can set up a module map (protection for the background is more practical).
‘URL_MODULE_MAP‘ => array(‘test‘=>‘admin‘),
Note: After the module mapping is set, the original admin module will not be accessible and can only access the test module.
Our Access http://serverName/Admin will report errors that the module does not exist, while the http://serverName/test admin module can be accessed normally.
If you also set MODULE_ALLOW_LIST parameters, you must change the original module in the Allow module list to the mapped module name, for example:
‘MODULE_ALLOW_LIST‘ => array(‘Home‘,‘Test‘,‘User‘),
‘DEFAULT_MODULE‘ => ‘Home‘,
‘URL_MODULE_MAP‘ => array(‘test‘=>‘admin‘),
Module-mapped modules must be defined using lowercase
[thinkphp] hide the background address