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?

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?

WBOY
WBOYOriginal
2016-10-11 14:23:381550browse

<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').

Reply content:

<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').

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn