65
include/common.inc.php
在
[php]error_reporting(0);
set_magic_quotes_runtime(0);[/php]
下加上
[code]
$domain = 'freetw.org'; //新域名
if ($_SERVER['HTTP_HOST'] != $domain) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://{$domain}{$_SERVER[REQUEST_URI]}");
}
unset($domain);
[/code]