wordpress多站点如何管理子域?

时间:2012-07-12 14:46:49

标签: wordpress .htaccess subdomain

我安装了Wordpress多站点,并且想了解子域名是如何实际管理的,即我的wordpress多站点如何知道在浏览器请求URL 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.domain.com时,我的wordpress多站点如何知道在哪里可以找到文件/数据?

0 个答案:

没有答案
相关问题