You are here:  » Change Urls


Change Urls

Submitted by IG on Mon, 2013-04-01 07:12 in

Hi David

I have managed to change the url parts /product/ to /newproduct/ and /review/ to /newreview/ by modifying them in .htacess and tapestry.php.

Questions:
1. Are there any other places where I need to make changes?
2. Which one should I disallow in robots.txt after making the changes: /review/ or /newreview/?

Best regards,
Ivo

Submitted by support on Mon, 2013-04-01 14:41

Hello Ivo,

That's all the changes required - the idea of the productHREF/reviewHREF functions is to make this sort of change very easy!

If you want to robots.txt out the originals, then you would add:

User-Agent: *
Disallow: /product/
Disallow: /review/

I know you have been a user for a few years so please double check your version of sitemap.php; as originally this did not use the functions to generate the URLs. Open the file in your text editor, and search for the litteral:

product/

(without the quotes), and if you find that, replace with:

newproduct/

Cheers,
David.
--
PriceTapestry.com

Submitted by Joko on Thu, 2013-12-12 15:14

Do i need to change product/ in sitemap?

since i dont find it.

Submitted by support on Thu, 2013-12-12 15:19

Hello Joko,

No changes required to sitemap.php - it gets the product URLs from the tapestry_productHREF() function...

Cheers,
David.
--
PriceTapestry.com

Submitted by Joko on Fri, 2013-12-13 03:59

Any way to redirect every:

domain.com/product/abc.html

to

domain.com/newproduct/abc.html

Submitted by support on Fri, 2013-12-13 06:32

Hello Joko,

Sure - adding the following to line to the end of your .htaccess file will do the trick:

RewriteRule ^product/(.*).html$ /newproduct/$1.html [R=301]

Cheers,
David.
--
PriceTapestry.com