admin管理员组文章数量:1391960
I have setup Wordpress Multisite on a bitnami image (on AWS). I have numerous domains working fine, each with their own WP site. (eg: a, b, c)
I also have some alias domains (a1, a2, a3) that I would like to be handled by the existing a wordpress site.
I have setup dns to point a1 to the same host as a. But this always takes me to the default WP site with the message about creating a new site. Not what I want.
I don't want to edit the VirtualHost settings in apache if possible. Is there a way for WordPress to accept all 4 domain names as the same site (a) ?
I have it working by creating a separate site for a1, another for a2 etc, and using a redirect plugin to use a 503 to send the user to a. However, this seems too complicated. Surely there is a better way to do this?
I have setup Wordpress Multisite on a bitnami image (on AWS). I have numerous domains working fine, each with their own WP site. (eg: a, b, c)
I also have some alias domains (a1, a2, a3) that I would like to be handled by the existing a wordpress site.
I have setup dns to point a1 to the same host as a. But this always takes me to the default WP site with the message about creating a new site. Not what I want.
I don't want to edit the VirtualHost settings in apache if possible. Is there a way for WordPress to accept all 4 domain names as the same site (a) ?
I have it working by creating a separate site for a1, another for a2 etc, and using a redirect plugin to use a 503 to send the user to a. However, this seems too complicated. Surely there is a better way to do this?
Share Improve this question asked Feb 28, 2020 at 21:29 TSGTSG 1054 bronze badges1 Answer
Reset to default 0If they're just to get visitors there and you don't care about making the site "look like" the alias domains, you can just 301 redirect the site using .htaccess or similar. If instead you want to make it "look like" visitors are on the alias domains then you may need to work with your host to figure out how to mask the URLs. Keep in mind this may have negative consequences for SEO so unless you absolutely must mask things, it's probably better to redirect instead.
本文标签: multisitemultiple domains point to same site on WPMU
版权声明:本文标题:multisite - multiple domains point to same site on WP-MU 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744706334a2620864.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论