hi David
I am looking to expand a site and want to rewrite the product page so that it always shows in the root, done all the rewrite in htaccess, what I want to know is it possible to hard code url to the product page, i found
return $config_baseHREF."product-".urlencode(tapestry_hyphenate($product["normalised_name"])).".html";
on line 53 in includes/tapestry.php and changed it to get rid of the /, what I need now is to be able to put in the actual url to the product not use $config_baseHREF.
Example would be http://www.domain.com/feed1/
All other areas of the install remain unchanged.
I hope this makes sense.
Brent
Hi Brent,
Yes you should be able to do that - simply replace $config_baseHREF as required, e.g.
return "/feed1/product-".urlencode(tapestry_hyphenate($product["normalised_name"])).".html";
Bear in mind that $config_baseHREF is also referred to in html/header.php in order to generate the URL to default.css, so this may need changing at line 12 also, e.g.
<link media='all' href='/feed1/default.css' type='text/css' rel='stylesheet' />
Cheers,
David.
--
PriceTapestry.com