I have a magento multi-store configuration. One website, with multiple stores, on different subdomains. I'm having an issue with a single product assigned to one store view having multiple urls.
My configuration is as follows:
Store 1 (website, store and view)
-- example.com
Store 2 (store, using above website)
-- store2.example.com (view for store2)
Store 3 (store, using above website)
-- store3.example.com (view for store3)
The issue is, I can go to three different urls for the same product:
- example.com/test-product.html
- store2.example.com/test-product.html
- store3.example.com/test-product.html
"Test Product", is assigned to Catagory1 and Catagory1 is assigned to store2 view.
Why is it that I can go to each of these urls and return the same product. When I do a site search, I want the product to be found, but when clicked, go to store2.example.com/test-product.html no matter what site the user is currently on.
Simply put, I want to:
Prevent the same product from having multiple urls (especially considering it should only be available in one store)
Search across all store but then point the product to the store it's assigned to.
I'm using Magento 1.8.