Hi All,
I was wondering how I could go about converting the following url types into something more friendly as recommended by google for example url's like:
http://www.mydomain.com/product_details.php?pid=224
into something like:
http://www.mydomain.com/this-is-the-product-name-for-product-id-224
or a url like
http://www.mydomain.com/mysubdirectory/product_details.php?pid=115
into a url like
http://www.mydomain.com/this-is-the-product-name-for-product-id-115
I think I need to use a combination of mod-rewrite and also canonical urls with the <link rel='canonical'> tag in the header of each document. Which no-doubt would have to be written dynamically for the product_details.php page. I'm just unclear as to how to go about doing this.
And finally how would I handle dynamically-created links in my php code created like in the below example?
<h3><a href="'.$cDIR.'/'.$cPage.'?aid='.$id.'" title="'.$title.'">'.$title.'</a></h3>
Thanks for any insight.