is it possible to know WHERE the controller decides it’s a 404…so i can mod and search from url to find approximate page ?
the seo module is so bad, i keep getting tons of google 404’'s
actually i found a partial way, this actually explodes the words in last part of url ( filename.html ) takes out html and takes out - …
then it pushes a search for that query…
it needs polishing, its pre-alpha lol but at least it pushed to the right product…
so i can type… mysite.com/asdad/af/dfgd/g/34t/3t/gf/someitemthatwasmoved.html
and it pushed result search for it…
fn.control.php
} elseif ($status == CONTROLLER_STATUS_NO_PAGE) {
// GET CURRENT SEARCH FROM URL
$view->assign('page_title', fn_get_lang_var('page_not_found'));
$a=$_SERVER['REQUEST_URI'];
$parts=explode(“/”,$a);
$nbr=sizeof($parts);
$swords=$parts[$nbr-1];
if (!(strstr($swords,“index.php”))) {
$view->assign('page_title', $swords);
if (strstr($swords,“.html”)) {
$swords=str_replace('.html','',$swords);
$swords=str_replace('-','+',$swords);
fn_redirect(“MYSITE?search_performed=Y&match=all&q=$swords&pname=N&pname=Y&pshort=Y&pfull=Y&pkeywords=Y&cid=0,“false, $external);
false, $external);$view->assign('page_title', $swords);
} else {
// CAT
$swords=str_replace('-','+',$swords);
$qq=””;
$cat=“$swords”;
}
}
}
if (AREA != 'A') {
Registry::set('root_template', 'exception.tpl');