From 01cf6810f6e9732a74b3dfa5c110635efee8ac48 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 6 Jan 2016 09:11:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index 37649d36..5d2cfa58 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -179,7 +179,7 @@ class Route } else { $rootDomain = Config::get('url_domain_root'); if ($rootDomain) { - // 配置域名根 com.cn net.cn 之类的域名需要配置 + // 配置域名根 例如 thinkphp.cn 163.com.cn 如果是国家级域名 com.cn net.cn 之类的域名需要配置 $domain = explode('.', rtrim(stristr($_SERVER['HTTP_HOST'], $rootDomain, true), '.')); } else { $domain = explode('.', $_SERVER['HTTP_HOST'], -2);