How does anyone handle setting up 301 redirects for different URLs in Ultimate? My understanding is all stores in Ultimate share the main .htaccess file, so if you share products and change something in all stores how do you setup the redirection for each store?
Example:
I had a product at with the ending URL /product.html for three store fronts. I then changed that products URL to be /detailed-product.html and I need to redirect it for all three store fronts, how would i do that?
Yes, they all use the same .htaccess
The only solution I found readibly available for this is the CS Cart Rocks Canonical URL addon, which allows you to specify the old URL in the Canonical field and the new URL in the SEO name field for disabled products, therefore the 'old' product 301 redirects to the new product.
Ok so I haven't extensively tested this but from my one little sample I tried this seemed to work when I put this in my .htaccess file:
RewriteCond %{HTTP_HOST} ^angelbunz\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.angelbunz\.com$
RewriteRule ^oldone\.html$ "http\:\/\/www\.angelbunz\.com\/beco-gemini-baby-carrier\.html" [R=301,L]
RewriteCond %{HTTP_HOST} ^greendiaperstore\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.greendiaperstore\.com$
RewriteRule ^oldone\.html$ "http\:\/\/www\.greendiaperstore\.com\/beco-gemini-baby-carrier\.html" [R=301,L]
So now when I go to http://www.angelbunz.com/oldone.html it redirects me to http://www.angelbunz.com/beco-gemini-baby-carrier.html
And then if I go to http://www.greendiaperstore.com/oldone.html it redirects me to http://www.greendiaperstore.com/beco-gemini-baby-carrier.html
FYI I got this by using cPanel's built in redirect manager so if you don't want to mess with the code directly in the .htaccess file you could use their interface. Also please note where cPanel put this in the .htaccess file was at the very end of the file, after the “” stuff and when it was there the server didn't recognize the redirects, but once I moved them above that code they worked just fine.
Hope this helps somebody else!