Home > Article > Backend Development > Domain name resolution - using thinkphp's pan-analytics, now all pages jump to the resolution location. I want to resolve it to the place I defined only when the second-level domain name does not take parameters. What should I do?
<code>'APP_SUB_DOMAIN_DEPLOY' => 1, // 开启子域名配置 'APP_SUB_DOMAIN_RULES' => array( '*' => array('Test/Index','a=domain'), // ) 想要的效果是只有*.test.com转到,'Test/Index', 其他带参数的,比如abc.test.com/index.php?a=Test&&b=aaa 之类的全都按照正常的路由解析。 </code>
But now all pages go to array('Test/Index','a=domain').
<code>'APP_SUB_DOMAIN_DEPLOY' => 1, // 开启子域名配置 'APP_SUB_DOMAIN_RULES' => array( '*' => array('Test/Index','a=domain'), // ) 想要的效果是只有*.test.com转到,'Test/Index', 其他带参数的,比如abc.test.com/index.php?a=Test&&b=aaa 之类的全都按照正常的路由解析。 </code>
But now all pages go to array('Test/Index','a=domain').