Redirect 标题位置重定向中的奇怪问题

Redirect 标题位置重定向中的奇怪问题,redirect,apache2,Redirect,Apache2,我在一台服务器上托管了三个网站(example1.com、example2.com、example3.com)。example1.com上有一个页面(test.php),里面只有下面的代码: <?php header('Location:http://example2.com/a.php'); ?> 问题解决了。这是因为pound服务器的配置。”pound服务器配置中的“RewriteLocation”项必须设置为2,以确保此服务器不会更改重定向位置 无论如何,谢谢你的回答。你

我在一台服务器上托管了三个网站(example1.com、example2.com、example3.com)。example1.com上有一个页面(test.php),里面只有下面的代码:

<?php
  header('Location:http://example2.com/a.php');
?>

问题解决了。这是因为pound服务器的配置。”pound服务器配置中的“RewriteLocation”项必须设置为2,以确保此服务器不会更改重定向位置


无论如何,谢谢你的回答。

你能在example2.com上发布你在a.php中的内容吗?这里有一个简单的回音“嗨”;命令。如果你把它放在浏览器中,它能正常工作吗?真的很棘手。。。。您可以上传各种页面/屏幕的截图吗?这可能有助于在发生错误时将Apache响应头在重定向上进行bitPost。
Response Headers: 

HTTP/1.1 302 Found
Date: Tue, 09 Oct 2012 09:03:34 GMT
Server: Apache/2.2.16 (Debian)
Location: http://example1.com/a.php
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 21
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8

Request Headers:

Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection  keep-alive
Cookie  mycookie  
Host    example1.com
User-Agent  Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1