Quando uma URL curta chegar, descriptografe o identificador, busque a URL completa no banco e redirecione via PHP.
header('HTTP/1.x 301 Moved Permanently');
header('Location: ' . $urlFull);
die;Se quiser transformar short.com/MYID em uma query string, aí sim vale usar mod_rewrite.