Home > Backend Development > PHP Tutorial > 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
Release: 2016-10-11 14:23:38
Original
1596 people have browsed it

<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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

But now all pages go to array('Test/Index','a=domain').

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template