12-14-2008, 10:07 PM
|
|
Confirmed User
Join Date: Mar 2006
Posts: 1,196
|
from adx-
Quote:
Originally Posted by NickSunshine
i dont use wordpress, and have not tried this, but i found this at wordpress, and took a stab at it anyway.
hope it works :tup:
Creating an Error 404 Page WordPress Codex
right before this:
Code:
// begin the output buffer to send headers and resonse
ob_start();
@header("HTTP/1.1 $AA_STATUS_CODE $AA_REASON_PHRASE",1);
@header("Status: $AA_STATUS_CODE $AA_REASON_PHRASE",1);
put this:
Code:
if($AA_STATUS_CODE == '404'){
header("Location: http://path.to/whatever");
}
|
|
|
|