Hi all,
I'm trying to use a 404 header, but nothing occurs. I simply use the header("HTTP/1.0 404 Not Found") code, yet the page just displays as normal.
The problem seems to be because I'm using mod rewrite. My .htaccess file makes certain URLs go to different files. For example mysite.com/directory/AL.php would use the state.php file.
Does anyone know how I could use 404 headers in this situation? At the moment I'm trying to add them in state.php etc on certain if conditions.
Hopefully you'll understand what I mean, it's hard to explain 🙂
Thanks,
Mike