How to use thinkphp3.2 admin to log in using a secondary domain name
phpcn_u2690
phpcn_u2690 2017-05-25 22:44:15
0
2
1365
phpcn_u2690
phpcn_u2690

reply all(2)
曹风周

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template