【发布时间】:2012-05-01 16:12:19
【问题描述】:
我有一个问题,我需要在我的域到达 php 之前重定向它。当它达到执行标头的能力时,为时已晚。
我该怎么办
if (domain == 'www.example.com')
redirect www.domain.com;
在我的 .htaccess 中?
【问题讨论】:
-
说真的,为什么不能像你写的那样?
-
以上代码示例为php。我需要它不击中 php
-
很公平。我只是认为 htaccess 领域特定的语言可能会更加理智。