You are here:  » How to change /product/ to something else.

Support Forum



How to change /product/ to something else.

Submitted by ANDREWCX on Wed, 2008-07-09 16:45 in

Hi,

Since I use Pricetapestry for a bit of an odd purpose, I was wondering how I could change the rewrite etc to put the 'products' in a directory other than /product/

Specifically, I would like

http://rewardsdb.com/product/Apple-Store.html

to become

http://rewardsdb.com/merchants/Apple-Store.html

I figured out how to change the htaccess file to create the directory but I don't know how to change the other parts of the site (search results, related, featured, sitemap etc) to direct to the new directory name rather than /product/. I would like to keep /product/ working for now so that there aren't a whole lot of broken inbound links.

Thanks,

Andrew

Submitted by support on Wed, 2008-07-09 16:50

Hi Andrew,

It's easily do-able, it's basically just a case of changing .htaccess and then every instance of product/ within the code to the new value. Using grep, the files that contain the string are:

index.php
products.php
reviews.php
search.php
sitemap.php

...so replacing "product/" with "merchants/" in the above files should do the trick!

Cheers,
David.