请原谅交叉发帖(也可以登录Wordpress.org):
我们在这里扯头发。我们有多站点配置工作,子目录风格。文件上载到子网站,但主(博客1)网站看不到任何上载流量。我们在Ubuntu上运行,所以有Debian风格的配置布局。
/etc/wordpress/htaccess:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
# viewing attached files
RewriteRule ^/wp-uploads/(.*)$ /srv/www/wp-uploads/%{HTTP_HOST}/$1 [L]
# force HTTPS always
RewriteCond %{HTTPS} off
RewriteCond %{ENV:IS_HTTP} !1
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L=301]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\\.php)$ $1 [L]
RewriteRule . index.php [L]
/etc/wordpress/config bclaconnect。ca.php:
$upload_path = "/srv/www/wp-uploads/bclaconnect.ca";
$upload_url_path = "http://bclaconnect.ca/wp-uploads";
# Support for WP Networks functionality
define( \'MULTISITE\', true );
define( \'SUBDOMAIN_INSTALL\', false );
$base = \'/\';
define( \'DOMAIN_CURRENT_SITE\', \'bclaconnect.ca\' );
define( \'PATH_CURRENT_SITE\', \'/\' );
define( \'SITE_ID_CURRENT_SITE\', 1 );
define( \'BLOG_ID_CURRENT_SITE\', 1 );
最后,/etc/wordpress/wp config。php:
define(\'ABSPATH\', \'/usr/share/wordpress/\');
define(\'WP_ALLOW_MULTISITE\', true);
系统上任何地方的日志文件中都没有上载的痕迹。到底发生了什么事?任何人
疯狂,在温哥华,埃里克