I\'m considering using the following code during a website launch phase to show users a down for maintenance page while showing me the rest of the site.
Is
Did you check what header you're getting? Because you should be getting a 302
with above.
From the manual: http://php.net/manual/en/function.header.php
The second special case is the "Location:" header. Not only does it send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless the 201 or a 3xx status code has already been set.