You are here:  » Change category in categorie


Change category in categorie

Submitted by marco.saiu on Tue, 2018-01-23 10:39 in

Hello David,

how to change /category/ in /categorie/ ?

Thanks,
Marco Saiu

Submitted by support on Tue, 2018-01-23 10:46

Hello Marco,

First make the changes in .htaccess so where you have the following rules beginning at line 15:

RewriteRule ^category/$ categories.php [L]
RewriteRule ^category/(.*)/$ categories.php?path=$1 [L,B]
RewriteRule ^category/(.*)/(.*).html$ search.php?q=category:$1:&page=$2&rewrite=1&%{QUERY_STRING} [L,B]

...REPLACE with:

RewriteRule ^categorie/$ categories.php [L]
RewriteRule ^categorie/(.*)/$ categories.php?path=$1 [L,B]
RewriteRule ^categorie/(.*)/(.*).html$ search.php?q=category:$1:&page=$2&rewrite=1&%{QUERY_STRING} [L,B]

Then edit includes/tapestry.php and look for the following code at line 313:

    $indexHREF["category"][TRUE] = "category/";

...and REPLACE with:

    $indexHREF["category"][TRUE] = "categorie/";

Cheers,
David.
--
PriceTapestry.com

Submitted by marco.saiu on Tue, 2018-01-23 11:16

Hello David,

i not know why but in /includes/tapestry.php i need use this code for work:

// saiu https://www.pricetapestry.com/node/6438
// $indexHREF["category"][TRUE] = "category/";
      $indexHREF["category"][TRUE] = "categorie/";

Thanks,
Marco Saiu

Submitted by support on Tue, 2018-01-23 11:29

Hi Marco,

That's perfect - I made a mistake in the replacement, corrected above.

Cheers,
David.
--
PriceTapestry.com