![](/img/trans.png)
[英]Sub domain or Sub directory need to redirect another sub domain or Sub domain
[英]Pointing a sub directory to another domain name
我有一个域名www.something.com ,它托管在Windows服务器中。现在我已经在其中创建了一个目录,名为www.something.com/help ,需要将其指向另一个服务器,我需要安装一个WordPress网站。 我该如何指出。
您可以通过创建index.php文件并将以下内容放入其中来设置php重定向:
<?php
header ('HTTP/1.1 301 Moved Permanently');
header("Location: http://www.anotherdomain.com");
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.