Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 无法在子站点多站点中发布_Php_Wordpress - Fatal编程技术网

Php 无法在子站点多站点中发布

Php 无法在子站点多站点中发布,php,wordpress,Php,Wordpress,我刚刚将我的Wordpress站点配置为带有子目录的multisite,一切正常,但问题是当我在子站点中发布一篇新文章时,它会显示一个新文章的页面,但单击“发布”后,什么也没有发生。如果使用文档根/public\u html/wp/,则它可以工作 搜索了5个小时后,我在谷歌上没有发现这个问题 .htacess文件正在使用文档根/public\u html/domain.com/wp/以及/public\u html/domain.com/。有2个.htacess文件,第一个用于domain.co

我刚刚将我的Wordpress站点配置为带有子目录的multisite,一切正常,但问题是当我在子站点中发布一篇新文章时,它会显示一个新文章的页面,但单击“发布”后,什么也没有发生。如果使用文档根
/public\u html/wp/
,则它可以工作

搜索了5个小时后,我在谷歌上没有发现这个问题

.htacess
文件正在使用文档根
/public\u html/domain.com/wp/
以及
/public\u html/domain.com/
。有2个
.htacess
文件,第一个用于
domain.com
,第二个用于安装在wp目录中的wordpress

我的域名
.htacess
是:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName domain.com
AuthUserFile /home/theindep/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/theindep/public_html/_vti_pvt/service.grp

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [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).*) wp/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wp/$2 [L]
RewriteRule . index.php [L]
WP Config.php

define ('WPLANG', '');
define('WP_DEBUG', false);
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );


define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'domain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);


/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
include_once(ABSPATH . 'wp-includes/feed2.php');

你点击按钮后没有错误?什么也没发生?谢谢你的考虑,没有,我没有收到任何错误。你已经将文件命名为
.htaccess
…对吗?你在整个问题中称之为
.htacess
,这一事实让我不禁要问。
define ('WPLANG', '');
define('WP_DEBUG', false);
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );


define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'domain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);


/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
include_once(ABSPATH . 'wp-includes/feed2.php');