Good job! although I still get an error when I fill $replacer variable and I use .htaccess a lot to change the original CI URL, so maybe it's better if we change :
$uri = $CI->uri->uri_string();
to
$uri = $_SERVER['REQUEST_URI'];[/quote]
Thanks for your feedback. i should check it again while i'm still waiting for more feedback from you guys...