【问题标题】:Pointing a sub directory to another domain name将子目录指向另一个域名
【发布时间】:2013-12-29 04:16:52
【问题描述】:

我有一个域名为 www.something.com 并且托管在 Windows 服务器中。现在我在其上创建了一个目录为 www.something.com/help 并且需要将其指向另一台服务器,我需要在其上安装一个 wordpress 网站。我怎么能指出这一点。

【问题讨论】:

    标签: php wordpress dns hosting


    【解决方案1】:

    您可以通过创建 index.php 文件并将以下内容放入其中来设置 php 重定向:

    <?php
    header ('HTTP/1.1 301 Moved Permanently');
    header("Location: http://www.anotherdomain.com");
    ?>
    

    【讨论】:

    • 那么我可以提供位置的 DNS 详细信息吗?
    • 不,DNS 仅在实际根域中可用。不是子目录。您必须像上面那样设置标题重定向,或者在其中放置一个框架。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-28
    • 1970-01-01
    • 1970-01-01
    • 2021-06-09
    相关资源
    最近更新 更多