search

Home  >  Q&A  >  body text

How to use thinkphp3.2 admin to log in using a secondary domain name

phpcn_u2690phpcn_u26902749 days ago1350

reply all(2)I'll reply

  • 曹风周

    曹风周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

    reply
    0
  • PHP中文网

    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

    reply
    1
  • Cancelreply