You are here:  » Related products URL


Related products URL

Submitted by sji2671 on Wed, 2006-09-20 13:36 in

Have I missed a setting?

Everything works fine, I have my store installed in a directory so update config + htaccess

When viewing a product with related enabled the url's for the related products don't work as they don't take into account my subdirectory.

ie. main product is at shopping/product/Kendal-2-Door-Wardrobe.html
Related product url's come up as product/Pine-Bedside-Chest-1-Drawer-1-Door.html no /shopping/

Thanks
Scott

Submitted by support on Wed, 2006-09-20 14:01

Hi Scott,

Sorry - there's one ../ too many in the URL when using mod_rewrite. The following line (81 of products.php):

if ($rewrite) $searchresults["products"][$k]["productHREF"] = "../../".$searchresults["products"][$k]["productHREF"];

should be:

if ($rewrite) $searchresults["products"][$k]["productHREF"] = "../".$searchresults["products"][$k]["productHREF"];

Now fixed in the distribution.

Cheers,
David.

Submitted by sji2671 on Wed, 2006-09-20 14:11

Excellent, thanks David, sorted.