0

I have a php script on a apache dedicated server. I've cleaned the code to test if header() works... here is the code I test :

<?php
header("Location : http://www.lemonde.fr/"); 
?>

The page loads and display a white screen, no redirection.

I think it should be a php.ini settingor a apache setting, but which one ?

Vincent Teyssier
  • 2,146
  • 5
  • 25
  • 62

1 Answers1

0

The first thing to try is changing Location : to Location: (it may be sensitive to the extra space).

Is this the only code? A WSOD is usually the sign of a PHP syntax error, but this looks clean.

Phil Perry
  • 2,126
  • 14
  • 18