0
我试图从servel域访问相同的WordPress网站 为前:同WordPress安装不同的子域
www.example.com
sub1.example.com
sub2.example.com
我已经下载了“域镜”插件并安装它,并配置它。
$default_options['domain_1'] = '';
$default_options['blogname_1'] = 'example'; // Weblog Title
$default_options['blogdescription_1'] = ''; // Tagline
$default_options['siteurl_1'] = 'http://example.com'; // Wordpress Address
$default_options['home_1'] = 'http://example.com'; // Blog Address
$default_options['domain_2'] = 'a';
$default_options['blogname_2'] = '';
$default_options['blogdescription_2'] = '';
$default_options['siteurl_2'] = 'http://sub1.example.com';
$default_options['home_2'] = 'http://sub1.example.com';
$default_options['domain_3'] = 'b';
$default_options['blogname_3'] = '';
$default_options['blogdescription_3'] = '';
$default_options['siteurl_3'] = 'http://sub2.example.com';
$default_options['home_3'] = 'http://sub2.example.com';
但是当我从我的子域名sub1,sub2进入网站。 所有的链接重定向到http://example.com/ .... 而不是http://sub1.example.com/ ...或... http://sub2.example.com/
这应该是“域镜像”插件开发人员的问题,但我认为重定向是正确的。我认为这就是想法,将所有内容重定向到一个位置,否则首先重定向的目的是什么?重定向并不意味着你将拥有3个站点而不是一个站点。希望我理解你的关心。 –