最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

multisite - multiple domains point to same site on WP-MU

programmeradmin1浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

If 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.

发布评论

评论列表(0)

  1. 暂无评论