Wordpress 如何将域重定向到不同的服务器';s子域?
我可能会问这个问题或以前问过的相关问题,但我需要正确地完成这个问题。让我解释一下我想要什么; 1-我在自己的服务器子域(例如:xyz.proje.com)中创建并设计了一个wordpress项目 2-我有一个域名(例如:www.xyz.com),它收购了不同的公司 3-项目将保留我自己的服务器,但域需要重定向此子域 那么我如何才能正确地做到这一点呢?如何在此项目中将所有xyz.proje.com(以及子页面等)链接更改为www.xyz.com? 谢谢。您登记wordpress了吗 还是编辑apacheWordpress 如何将域重定向到不同的服务器';s子域?,wordpress,.htaccess,redirect,dns,Wordpress,.htaccess,Redirect,Dns,我可能会问这个问题或以前问过的相关问题,但我需要正确地完成这个问题。让我解释一下我想要什么; 1-我在自己的服务器子域(例如:xyz.proje.com)中创建并设计了一个wordpress项目 2-我有一个域名(例如:www.xyz.com),它收购了不同的公司 3-项目将保留我自己的服务器,但域需要重定向此子域 那么我如何才能正确地做到这一点呢?如何在此项目中将所有xyz.proje.com(以及子页面等)链接更改为www.xyz.com? 谢谢。您登记wordpress了吗 还是编辑apa
听80
DocumentRoot/www/mainsite
服务器名www.example.com
#这里还有其他指示
DocumentRoot/www/subdomain1
ServerName subdomain1.example.com
#这里还有其他指示
DocumentRoot/www/subdomain2
ServerName子域2.example.org
#这里还有其他指示
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>