[eluser]drewbee[/eluser]
What if we do a redirect from the pre_system hook? We really don't have any of CI initialized so we will be doing straight out php code.
Code:
if ($_SERVER['SCRIPT_FILENAME'] == '/mysite/index.php/home/order_success/index.php' && isset($_GET['crypt']))
{
header("Location: /mysite/index.php/home/order_success/" . $_GET['crypt']);
unset($_GET['crypt']); // if for some reason the redirect doesn't work.
}
Please note this will work on any page, so you *should* do some extra work to make sure it only registers on the home/order_success controller using $_SERVER['SCRIPT_FILENAME'].