I need to turn URL's such as the following:
/catalog/products/24
into cleaner URL's such as the following:
/catalog/product-name-here
I'm using CodeIgniter, and rewrite engine is on and setup. I also setup rewriting in the routes.php file as follows:
$route['catalog/products/(:any)'] = 'catalog/view/$1';
Question: Where do I replace the product ID /24 with /product-name-here? I can successfully get the parameter $1, and fetch the product name. I can't seem to figure out how to rewrite the URL with this dynamic value though. Thanks in advance!