You are here:  » Rewrite not working after new theme


Rewrite not working after new theme

Submitted by tisbris on Tue, 2013-05-07 19:30 in

Hi David

I'm working on a new theme and suddently my rewrite doesn't work on merchant, category and brand (atoz)

I need to make this change to make rewrite work again:
// $item["href"] = urlencode(tapestry_hyphenate($product["merchant"]))."/";
$item["href"] = $config_baseHREF."merchant/".urlencode(tapestry_hyphenate($product["merchant"]))."/";

What is missing?

//Brian

PS. No changes has been made to atoz.php, merchants.php, brands.php and categories.php during this theming.

Submitted by support on Tue, 2013-05-07 20:30

Hello Brian,

Your modification is fine - it sounds like it's because the links are now being included on pages that are already re-written, and therefore the inclusion of $config_baseHREF is the correct thing to do...

Cheers,
David.
--
PriceTapestry.com