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


get the article id for anyone-for-yiddish-tango
$temp = Array
(
    [0] => 
    [1] => features
    [2] => feature-articles
    [3] => 2235-2014
    [4] => 42424-anyone-for-yiddish-tango
)
!-- 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 = 'anyone-for-yiddish-tango' AND a.state = 1 AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= 1412092141 ) ORDER BY a.ordering ; --> !-- first set
Array
(
    [0] => stdClass Object
        (
            [catid] => 2235
            [id] => 45170
            [state] => 1
            [alias] => anyone-for-yiddish-tango
            [title] => ANYONE FOR YIDDISH TANGO?
            [publish_up] => 2014-08-19 00:37:42
            [publish_down] => 0000-00-00 00:00:00
            [created] => 2014-08-19 00:37:42
        )

)
-->

$the_alias = anyone-for-yiddish-tango, $the_url = /features/feature-articles/2235-2014/42424-anyone-for-yiddish-tango, $the_old_id = 42424 ,$the_id = 45170
the new url = /features/feature-articles/2235-2014/45170-anyone-for-yiddish-tango