header('HTTP/1.1 301 Moved Permanently');
header("Location: {'www.'.$Domain}");
exit;
这个PHP301为啥没法执行
header('HTTP/1.1 301 Moved Permanently');
header("Location: {'www.'.$Domain}");
exit;
这个PHP301为啥没法执行
可能因为该段代码没有被正确调用或放置在正确的位置。
另外,也要确保变量$Domain已经被正确定义和赋值。