在下面的重定向代码中,如果传入的流量有路径和查询字符串数据,是自动重传,还是必须显式捕获和重传?
if($_SERVER['SERVER_NAME'] == 'goose.com.au' || $_SERVER['SERVER_NAME'] == 'www.goose.com.au'){
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: http://www.geese.com.au" );
}
例如,假设流量以
http://www.goose.com.au/mother?request=need+new+hat
这会自动重定向到
http://www.geese.com.au/mother?request=need+new+hat
还是我需要捕获详细信息并在“位置:”中重新指定它们?
如果是后者,目前的最佳实践技术是什么?