This is the custom error page for HTML error 404 - "file not found"


get the article id for remembering-jean-redpath
$temp = Array
(
    [0] => 
    [1] => passings-104
    [2] => 42439-remembering-jean-redpath
)
!-- query = SELECT a.catid, a.id, a.state, a.alias as alias, a.title, a.publish_up, a.publish_down, a.created FROM #__content AS a WHERE alias = 'remembering-jean-redpath' AND a.state = 1 AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= 1412098705 ) ORDER BY a.ordering ; --> !-- first set
Array
(
    [0] => stdClass Object
        (
            [catid] => 60
            [id] => 45251
            [state] => 1
            [alias] => remembering-jean-redpath
            [title] => Remembering Jean Redpath
            [publish_up] => 2014-09-06 23:37:29
            [publish_down] => 0000-00-00 00:00:00
            [created] => 2014-09-06 23:37:29
        )

)
-->

$the_alias = remembering-jean-redpath, $the_url = /passings-104/42439-remembering-jean-redpath, $the_old_id = 42439 ,$the_id = 45251
the new url = /passings-104/45251-remembering-jean-redpath