//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
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
//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
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