所需行为:http://www.situationware.com
应留在www.situationware.com
, 无需注册。
目前wordpress正在自动重定向到Amazon主机名ec2-107-22-241-162.compute-1.amazonaws.com
, 如果我更新wp config,则请求用户注册。通过取消注释phpDOMAIN_CURRENT_SITE
我最终将循环重定向到http://situationware.com/wp-signup.php?new=situationware.com
正如您在下面看到的,在升级到3.6.1之前,我确实安装了几个月前的multisite。
我安装了WordPress MU域映射插件,但既没有帮助也没有伤害。我无法添加主站点,但已设置域映射屏幕。
define( \'MULTISITE\', true );
define( \'SUBDOMAIN_INSTALL\', true );
$base = \'/\';
define( \'DOMAIN_CURRENT_SITE\', \'ec2-107-22-241-162.compute-1.amazonaws.com\' );
//define( \'DOMAIN_CURRENT_SITE\', \'situationware.com\' );
define( \'PATH_CURRENT_SITE\', \'/\' );
define( \'SITE_ID_CURRENT_SITE\', 1 );
define( \'BLOG_ID_CURRENT_SITE\', 1 );
SO网友:Eugene Manuilov
检查您的.htaccess
文件,它必须如下所示:
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,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]
以及
wp-config.php
必须包含以下行:
define(\'MULTISITE\', true);
define(\'SUBDOMAIN_INSTALL\', true);
define(\'DOMAIN_CURRENT_SITE\', \'situationware.com\');
define(\'PATH_CURRENT_SITE\', \'/\');
define(\'SITE_ID_CURRENT_SITE\', 1);
define(\'BLOG_ID_CURRENT_SITE\', 1);