I have Multi-Store Magento Website, that is managed by only One Admin
in one of its store website,
when i click on product name, it redirects me to 404 page.
what can be the problem ?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Where are you viewing the product from?
If you've hard coded the display of a specific product, then perhaps you can see it to click because you've hard coded it in the template, but when you click it, the respective catalogue URL rewrite does not exist - and so 404s.
Check the product is viewable via a non rewritten URL. Eg.
Replace XXX with the entity id of the product (not the sku!)
If that doesn't work, then the product isn't either
If it does work, then you just need to rebuild your catalogue URL rewrites index.
Also try accessing it via the bootstrap just to rule out web server rewrites
If that works, check your web server config for rewrites.
Follow these steps until the problem is solved or you reach the end of the list.
You're using multi-store, do you have a discrete
MAGE_RUN_TYPE per store?
Do you have these being set correctly when accessing your store? If you're able to successfully get the home page but not product pages check for redirect's or changes to the domain that may impact the run codes.
Ways to set these:
Directly in your
index.php, e.g. a case statement based on
HTTP_HOST or domain name - passing them directly to
In your Apache virtualhost (or similar) per domain using
In your .htaccess (if Apache) with some regex e.g.
SetEnvIf Host .*example.* MAGE_RUN_CODE=example
With all of these options you need to make sure your logic in 1. or 3. includes the range of domains/hosts for each store. In 2. Check your the domains Apache is listening on to make sure it covers all that Magento is serving/redirecting on.
If this isn't the issue, assuming you're using Apache, it often helps to temporarily set your LogLevel to something more verbose like
debug to see exactly what's going on at the server level before Magento gets involved.