【问题标题】:Sub domain or Sub directory need to redirect another sub domain or Sub domain子域或子目录需要重定向另一个子域或子域
【发布时间】:2014-02-27 11:22:20
【问题描述】:

我有一个子域,例如 abc.xyz.com

此子域以以下网址打开,例如 abc.xyz.comwww.xyz.com/abc

我需要将所有这些重定向到新的子域或新域的子目录 如何在 PHP 中做到这一点?

【问题讨论】:

    标签: php subdomain url-redirection


    【解决方案1】:

    使用标头重定向

    header('Location: http://www.example.com/');
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-14
      • 2019-01-12
      • 2013-08-04
      相关资源
      最近更新 更多