But for some reason I'm never getting my 404 status code - it gives a 200 instead. I've checked and double-checked that there's no actual output before the header(), and when I check the PHP error codes there's nothing else than some notices. I've also tested a location header instead, which doesn't work neither.