You are here:  » Rewrite jump.php product links?


Rewrite jump.php product links?

Submitted by NiceGuyEddie on Thu, 2017-04-06 16:21 in

Hi David,

Is it possible to rewrite using htaccess the jump.php?id=12345 links to something like /folder/jump/12345 ?

Thanks

Paul

Submitted by support on Sat, 2017-04-08 13:14

Hello Paul,

Sure - firstly add the following new rule at the end of your .htaccess file:

RewriteRule ^jump/(.*)$ jump.php?id=$1 [B,L]

With that in place, edit includes/tapestry.php and look for the following code at line 98:

      return $config_baseHREF."jump.php?id=".$product["id"];

...and REPLACE with:

      return $config_baseHREF."jump/".$product["id"];

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Sun, 2017-04-09 11:58

Perfect. Thank you!