You are here:  » Change URL path


Change URL path

Submitted by MarcoCH on Thu, 2019-01-03 15:51 in

Hello

I would like to customize the existing paths (Merchant, Category, Brand, etc.) in German. Where do I have to adapt that everywhere, is that a big expense?

Thanks for your help.
regards
Marco

NB: Happy New Year ;-)

Submitted by support on Thu, 2019-01-03 16:02

Hi Marco,

HNY to you too!

It's easy to change the "slugs", there is only one change to the code for each one, and then the corresponding changes in your .htaccess file. All code changes are in includes/tapestry.php:

For /product/ change at line 65:

  return $config_baseHREF."product/".urlencode(tapestry_hyphenate($product["normalised_name"])).".html";

For /review/ change at line 82:

  return $config_baseHREF."review/".urlencode(tapestry_hyphenate($product["normalised_name"])).".html";

For /merchant/ change at line 321:

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

For /category/ change at line 325:

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

For /brand/ change at line 329:

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

Then simply make the corresponding changes in .htaccess (3 instances each of merchant/, category/ and brand/) and that is all you need to do...

Cheers,
David.
--
PriceTapestry.com

Submitted by MarcoCH on Wed, 2019-01-16 09:39

Perfect ... thx!

... or not?

Hello

It does not want to work on my side.
The navigation works, although I always have to reload the page. Do I have to adjust something on "search.php", which the filter is not working anymore?

Greeting
Marco

Submitted by support on Wed, 2019-01-16 11:34

Hi Marco,

I wonder if you're seeing cached pages from before you implemented the mod - if you try CTRL+F5 when viewing a page that should force a refresh then check the source to make sure the links are correct. You could also try doing a browser cache clear however in some cases cached pages may be served by network proxy servers (e.g. at your ISP...)

Cheers,
David.
--
PriceTapestry.com