简体   繁体   English

将子目录指向另一个域名

[英]Pointing a sub directory to another domain name

I have a domain name as www.something.com and which is hosted in a windows server.Now i have created a directory inside on it as www.something.com/help and need to point that to another server, I need to install a wordpress website on that. 我有一个域名www.something.com ,它托管在Windows服务器中。现在我已经在其中创建了一个目录,名为www.something.com/help ,需要将其指向另一个服务器,我需要安装一个WordPress网站。 How can i point that. 我该如何指出。

You could set up a php redirect by creating an index.php file and placing the following in it: 您可以通过创建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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM