How can I route to specific URL for URL having dynamic id. Suppose orginal URL is
http:localhost/c2c/init/product/5 // here 5 is the id of the product.
In route.php
$route["product/iphone-on-sale"] = "init/product/5";
But its not routing to http:localhost/c2c/product/iphone-on-sale when when original URL is entered.
You can try this
and your url will be