You are here:  » product instead of products

Support Forum



product instead of products

Submitted by rolli1 on Fri, 2012-11-02 08:52 in

Hi David,

in my search results I get the following url

http://www.example.com/product/Product-Name.html

this link does show an error and google can not follow this link.
The working urls should be

http://www.example.com/products/Product-Name.html

Where does this come from and how can I change that. I have allready changed the .htaccess rewrite from product to products but nothing happened.

Regards

Roland

Submitted by support on Fri, 2012-11-02 10:26

Hi Roland,

It's created where the product URLs are generated within the tapestry_productHREF() function in includes/tapestry.php. Look for the following code at line 53:

return $config_baseHREF."product/".urlencode(tapestry_hyphenate($product["normalised_name"])).".html";

...and REPLACE with:

return $config_baseHREF."products/".urlencode(tapestry_hyphenate($product["normalised_name"])).".html";

Cheers,
David.
--
PriceTapestry.com

Submitted by rolli1 on Sat, 2012-11-03 09:21

Thanks for that.....
Roland