Redirect 如何将子域重定向到其他站点

Redirect 如何将子域重定向到其他站点,redirect,dns,host,Redirect,Dns,Host,我有这个网站www.ipsum.nl。和一个子域lorum.ipsum.nl。 我还有一个网站www.othersite.com 如何让lorum.ipsum.nl重定向到www.othersite.com,而不必加载其他页面,如“index.html”?使用您的文件: 或者,您可以使用正则表达式和重写引擎来匹配子域。您甚至没有提到正在使用的web服务器。阿帕奇?Nginx? RewriteEngine on Redirect 301 http://lorum.ipsum.nl http:/

我有这个网站www.ipsum.nl。和一个子域lorum.ipsum.nl。 我还有一个网站www.othersite.com

如何让lorum.ipsum.nl重定向到www.othersite.com,而不必加载其他页面,如“index.html”?

使用您的文件:


或者,您可以使用正则表达式和重写引擎来匹配子域。

您甚至没有提到正在使用的web服务器。阿帕奇?Nginx?
RewriteEngine on  
Redirect 301 http://lorum.ipsum.nl http://www.othersite.com