0
我有这个网站www.ipsum.nl。和一个子域名为lorum.ipsum.nl。 我也有其他网站www.othersite.com。如何将一个子域名重定向到其他网站
如何让lorum.ipsum.nl重定向到www.othersite.com而不必加载其他页面,如'index.html'?
我有这个网站www.ipsum.nl。和一个子域名为lorum.ipsum.nl。 我也有其他网站www.othersite.com。如何将一个子域名重定向到其他网站
如何让lorum.ipsum.nl重定向到www.othersite.com而不必加载其他页面,如'index.html'?
使用您.htaccess文件:
RewriteEngine on
Redirect 301 http://lorum.ipsum.nl http://www.othersite.com
,或者您可以使用正则表达式与RewriteEngine叙述匹配子域。
你甚至没有提及你使用的是什么Web服务器。 Apache的? Nginx的? – jdi