Optimize index.php?id/aid= to alias conversion