Static Seo-History :-)

Does cs have a hook or pre/post-file I can use to make a function where I can read a list of old links matched to cs internal id, I can put it in mysql or even load it in an associative array.



Basically…



"product_id";"urls from old shop"
"1111";"aaaa/aa/product1.html"
"1111";"cccc/bb/product1.html"
"1111";"dddd/cc/product1.html"
"2222";"ssss/cc/product2.html"
"2222";"cccc/ff/product2.html"
"2222";"dddd/hh/product2.html"

if "request_seo-name" == "seo_name_in_cs" {
// valid seo-name (let cs continue to internal url)
exit;
} else {
// not valid seo-name
Redirect to "index.php?dispatch=products.view&product_id=1111" and let cs take care of 301 redirect to seo-link
(OR redirect to new seo-link www.my_site.com/new_seourl_in_cs.html)
}

Oops… forgot CS4.1.5 hopfully even 4.2

Forget this… 4.2.1 (rc) has built in function for this… WORKS GREAT :-)