ThinkPhp5 access module two domain names

1. Drive configuration DNS resolution.

2. pagoda -> Website -> Configuration -> subdirectory bind -> Add second-level domain sb.baidu.com, as subdirectory is public.

3.application / config.php url_domain_deploy => true, open domain deployment.

4.application / route.php add

use think\Route;
Route::domain('sb','sb/index/signin');

Guess you like

Origin www.cnblogs.com/litchimax/p/11585538.html