I have this simple PHP code running on a 64 bit linux server featuring PHP 5.4.40:
<?php
header('HTTP/1.1 301 Moved Permanently');
header('Location: /folder');
die();
?>
Any time I connect to this page I get a strange status code: 301 OK I was unable to find where the problem is, hosting is a free plan host-ed, I don't have information about Apache version.
Thanks in advice
EDIT: Maybe I was not clear, I was expecting it to return 301 Moved Permanently, not 301 OK wich is against HTTP specs.
You are setting that 301 code with the following line: