我刚刚安装了Wordpress 3.8.1的新版本,然后使用子域启用了网络功能。
在cPanel中,我的通配符子域指向Wordpress文件夹,Wordpress admin在子域中工作正常。
当我在一个子域的管理区域中,试图向页面添加一个图像时,该图像显示为一个断开的占位符。
然而,我可以看到它已经上传到/wp-content/uploads/sites/2/2014/03/*。jpg公司
这是我的。htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteRule ^.*/files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\\.php)$ $1 [L]
RewriteRule . index.php [L]
你能看出来是怎么回事吗?以下是一些即使在文件系统中也不会显示在浏览器中的示例图像: