我安装了Wordpress multisite,希望了解子域实际上是如何管理的,即当浏览器请求URL时,我的Wordpress multisite如何知道在何处查找文件/数据user1.domain.com
?
我检查了DNS A记录,只看到通配符。
我检查了。htaccess,如下所示:
RewriteEngine On
RewriteBase /
# Protect the htaccess file
<Files .htaccess>
Order Allow,Deny
Deny from all
</Files>
# Protect wpconfig.php
<Files wp-config.php>
Order Allow,Deny
Deny from all
</Files>
# Disable directory browsing
Options All -Indexes
RewriteRule ^index\\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
所以我认为。htaccess不管理子域,还是?
那么,当浏览器请求URL user1时,我的wordpress multisite如何知道在哪里查找文件/数据呢。领域com?