曹风周2017-07-01 10:15:01
//Enable subdomain name configuration. Except for the default group, other groups can only be accessed using subdomain names.
'APP_SUB_DOMAIN_DEPLOY' => 1,
//Subdomain name configuration, format: 'Subdomain name' => array('Group name /[Module name]','var1=a&var2=b');
'APP_SUB_DOMAIN_RULES' => array(
'admin' => array('Admin/'),//The corresponding domain name is admin.xxx.com
),
If you are using a module made by admin, you can implement it like this
PHP中文网2017-05-26 11:24:59
Determine the domain name in the admin entry file. Only the domain name you defined is allowed to be opened. Others cannot be opened. PHP determines the domain name