You are here:  » Remove /product/ from site map

Support Forum



Remove /product/ from site map

Submitted by lunen on Thu, 2011-09-29 16:24 in

Hi david,

I set up my rewrite to take out the /product/ in front of the product name in the URL. It's still showing up in the sitemap.

I changed line 32 from

$sitemapHREF = "product/".urlencode(str_replace(" ","-",$row["normalised_name"])).".html";
to
$sitemapHREF =.urlencode(str_replace(" ","-",$row["normalised_name"])).".html";

but that didn't work. I'm still seeing the /product/ in the url.

do i need to regenerate a sitemap? Or maybe reimport?

Submitted by support on Thu, 2011-09-29 16:48

Hi Lunen,

That's almost correct but the . at the start of the value shouldn't be there - have a go using:

$sitemapHREF = urlencode(str_replace(" ","-",$row["normalised_name"])).".html";

Cheers,
David.
--
PriceTapestry.com

Submitted by lunen on Thu, 2011-09-29 17:14

Whoops. Got it. Thanks!!