addisoncave
Active Member
Hy guys, I want to set a default php 404 error page for my server, but i don't want it to redirect to error.php instead it show the 404 message to same address which we type in browser. How to accomplish this?
[COLOR=#333333][FONT=Consolas]if[/FONT][/COLOR][COLOR=#333333][FONT=Consolas]([/FONT][/COLOR][FONT=Consolas][COLOR=#008080]'check data'[/COLOR][/FONT][COLOR=#333333][FONT=Consolas])[/FONT][/COLOR][COLOR=#333333][FONT=Consolas]{[/FONT][/COLOR]
[COLOR=#999999] header[/COLOR]([COLOR=#BB8844]"HTTP/1.1 404 Not Found"[/COLOR]);[COLOR=#999988][I]//HTTP/1.0 || HTTP/2[/I][/COLOR]
exit; [COLOR=#333333][FONT=Consolas]
[/FONT][/COLOR][COLOR=#333333][FONT=Consolas]}
[/FONT][/COLOR]