可能此问题或相关人员之前曾问过,但我需要正确完成此问题。那么让我解释一下我想要的东西; 1-我创建并设计了一个wordpress项目我自己的服务器子域(例如:xyz.proje.com)
2-我有一个域名(例如:www.xyz.com),它购买了不同的公司。
3-项目将保留我自己的服务器,但域需要重定向此子域。
那我怎么能这样做呢?如何在此项目中更改所有xyz.proje.com(和子页面等)链接到www.xyz.com? 感谢。
答案 0 :(得分:0)
你在wordpress中检查了 Create A Network吗?
或编辑apache Virtual Host?
Listen 80
<VirtualHost *:80>
DocumentRoot /www/mainsite
ServerName www.example.com
# Other directives here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /www/subdomain1
ServerName subdomain1.example.com
# Other directives here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /www/subdomain2
ServerName subdomain2.example.org
# Other directives here
</VirtualHost>