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
Do i need to change product/ in sitemap?
since i dont find it.
Hello Joko,
No changes required to sitemap.php - it gets the product URLs from the tapestry_productHREF() function...
Cheers,
David.
--
PriceTapestry.com
Any way to redirect every:
domain.com/product/abc.html
to
domain.com/newproduct/abc.html
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
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