我正在开发一个 wordpress mu 4.0.1
我将它从开发服务器迁移到产品服务器,现在访问全局站点管理菜单时出现无限 302 Moved Temporarily 循环。所有路径似乎都是正确的。在开发服务器中一切正常。:/
这是我使用的 htacces 文件:
# disable directory browsing
Options All -Indexes
# Stop access to sensitive files
<Files .htaccess>
Order Allow,Deny
Deny from all
Satisfy all
</Files>
<Files readme.html>
Order Allow,Deny
Deny from all
Satisfy all
</Files>
<Files wp-config.php>
Order Allow,Deny
Deny from all
Satisfy all
</Files>
<Files php.ini>
Order Allow,Deny
Deny from all
Satisfy all
</Files>
<FilesMatch "^(error_log)$">
Order Allow,Deny
Deny from all
Satisfy all
</FilesMatch>
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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
这是 wp-config.php 文件的结尾:
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
define ('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'www.chs-yonne.fr');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/** Réglage des variables de WordPress et de ses fichiers inclus. */
require_once(ABSPATH . 'wp-settings.php');
谢谢你的手表!
皮埃尔。