WordPress - MultiSite:你确定要这么做吗?请再试一次

时间:2012-03-28 10:43:19

标签: .htaccess post media wordpress

我的博客上遇到问题:http://osify.com处理时添加新帖子并显示以上错误消息。我试图禁用所有插件或更改主题,错误仍然是相同的。 我发现问题可能链接到媒体上传,它无法发布任何图像,它正在等待:“嘎吱嘎吱......”没有继续,但文件在文件夹中(通过FTP检查)

我已经尝试将文件夹chmod到777(文件夹为755,文件为644)

我认为它可能链接到共享托管上的多站点问题,但没有明确的想法或线索。

我的.htaccess

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]


<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
[..]
# BEGIN WordPress
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

当我启用子网站时,似乎就会发生这种情况 有什么方法可以解决这个问题吗?

感谢您的建议,

2 个答案:

答案 0 :(得分:0)

重新上传您的Wp-admin文件 这将解决您的问题

答案 1 :(得分:0)

你的.htaccess的数量是ganked ....

将这部分移到顶部。

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

您应该在那里进行的唯一WP调用应匹配:http://codex.wordpress.org/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite