Öncelikle, bu zaten 'sorunu gönderilen başlıklar değil.
Ben yönlendirme yapar, bir de dosya var. Bu benim pencereleri çalışır üretim sunucusuna, dışında onu denedim her sunucuda çalışır.
Ben üretim sunucusunda çalıştırdığınızda, sadece dosyayı değil, tüm sayfa bulunmaktadır yönlendirir.
Ben index.php, ana dosya var:
<?php include('red.php'); ?>
<html ....
>
And I do the redirect to another page in red.php. Then the redirected page will show up at the top of the index.php page, with the rest of the index.php html file after this page.
Have the mess up some setting in php.ini?
After some more investigation, the problem is when I use a full URL rather than a relative URL. The first will only redirect the included file. (the problem I discovered above)
while the second works correctly
red2.php:header("Location: http://example.com/newfile.php"); header("Location: newfile.php");'