Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启二级域名部署后, URL路由该怎么用 #45

Closed
cbwfree opened this issue Apr 28, 2016 · 0 comments
Closed

开启二级域名部署后, URL路由该怎么用 #45

cbwfree opened this issue Apr 28, 2016 · 0 comments

Comments

@cbwfree
Copy link
Contributor

cbwfree commented Apr 28, 2016

RT.
我开启了如下二级域名部署, 并设置URL路由:

return [
    "__domain__" => [
        'baike'         => 'index/baike',
    ],

    "entry/:id"    => "index/baike/entry",
];

此时使用域名 http://baike.xxx.com/entry/101 无法正常访问,
但取消二级域名部署后, 使用 http://www.xxx.com/entry/101 可以正常访问

@liu21st liu21st closed this as completed Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants