When open a productin multi-store website it redirects to 404 - page not found












0















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 ?










share|improve this question

























  • What is the URL of the page called? Did you enable mod_rewrite, do you have a .htaccess and rewrites?

    – Alex
    May 10 '13 at 9:45











  • There could be many problems. Enable developer mode & php error display; check Magento logs; do some debugging and give an indication to help us help you.

    – benmarks
    May 10 '13 at 12:00











  • Is your issue solved?

    – zus
    Dec 18 '17 at 12:24
















0















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 ?










share|improve this question

























  • What is the URL of the page called? Did you enable mod_rewrite, do you have a .htaccess and rewrites?

    – Alex
    May 10 '13 at 9:45











  • There could be many problems. Enable developer mode & php error display; check Magento logs; do some debugging and give an indication to help us help you.

    – benmarks
    May 10 '13 at 12:00











  • Is your issue solved?

    – zus
    Dec 18 '17 at 12:24














0












0








0








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 ?










share|improve this question
















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-1.7 admin multistore store-view administration






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 51 mins ago









Teja Bhagavan Kollepara

3,01241949




3,01241949










asked Mar 26 '13 at 15:06









mIhAwkmIhAwk

613




613













  • What is the URL of the page called? Did you enable mod_rewrite, do you have a .htaccess and rewrites?

    – Alex
    May 10 '13 at 9:45











  • There could be many problems. Enable developer mode & php error display; check Magento logs; do some debugging and give an indication to help us help you.

    – benmarks
    May 10 '13 at 12:00











  • Is your issue solved?

    – zus
    Dec 18 '17 at 12:24



















  • What is the URL of the page called? Did you enable mod_rewrite, do you have a .htaccess and rewrites?

    – Alex
    May 10 '13 at 9:45











  • There could be many problems. Enable developer mode & php error display; check Magento logs; do some debugging and give an indication to help us help you.

    – benmarks
    May 10 '13 at 12:00











  • Is your issue solved?

    – zus
    Dec 18 '17 at 12:24

















What is the URL of the page called? Did you enable mod_rewrite, do you have a .htaccess and rewrites?

– Alex
May 10 '13 at 9:45





What is the URL of the page called? Did you enable mod_rewrite, do you have a .htaccess and rewrites?

– Alex
May 10 '13 at 9:45













There could be many problems. Enable developer mode & php error display; check Magento logs; do some debugging and give an indication to help us help you.

– benmarks
May 10 '13 at 12:00





There could be many problems. Enable developer mode & php error display; check Magento logs; do some debugging and give an indication to help us help you.

– benmarks
May 10 '13 at 12:00













Is your issue solved?

– zus
Dec 18 '17 at 12:24





Is your issue solved?

– zus
Dec 18 '17 at 12:24










3 Answers
3






active

oldest

votes


















1














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.



http://www.example.com/catalog/product/view/id/XXX/


Replace XXX with the entity id of the product (not the sku!)



If that doesn't work, then the product isn't either




  1. Enabled for that website

  2. Set to be visible in catalogue


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



   http://www.example.com/index.php/catalog/product/view/id/XXX/


If that works, check your web server config for rewrites.






share|improve this answer
























  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:55



















0














Follow these steps until the problem is solved or you reach the end of the list.




  1. Clear the cache (contents of folder var/cache)

  2. If you have other cache systems (full page cache for example) clear
    them

  3. Check if the product is assigned to that website.

  4. Check if the product is enabled.

  5. Check if the visibility on that website is 'catalog' or 'catalog,
    search'.

  6. Save the product again in the admin.

  7. Rebuild all your indexes. There might be a problem with the url
    rewrites.






share|improve this answer
























  • Everything done already, these steps are basic to be followed when any result not come-out.

    – mIhAwk
    Mar 26 '13 at 15:16











  • can you provide a link to the website? maybe it helps.

    – Marius
    Mar 26 '13 at 15:31






  • 1





    Please give me your email, i send you there.

    – mIhAwk
    Mar 26 '13 at 16:13





















0














You're using multi-store, do you have a discrete MAGE_RUN_CODE or 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:




  1. Directly in your index.php, e.g. a case statement based on HTTP_HOST or domain name - passing them directly to Mage::run($mageRunCode, $mageRunType);.


  2. In your Apache virtualhost (or similar) per domain using SetEnv.


  3. 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.






share|improve this answer
























  • If the product is viewable, surely the store code is already set to be able to see the product to click?

    – Ben Lessani - Sonassi
    Mar 26 '13 at 22:39











  • It's certainly possible. What if the Apache VirtualHost is serving on example.com and www.example.com. But the store code has been only mapped correctly for example.com, maybe bad regex that doesn't take subdomains in to account. Magento is set to base_url of www.example.com. So you hit example.com, the store displays and it works but all the generated URLs are www.example.com, so they'll result in a 404.

    – rjocoleman
    Mar 26 '13 at 23:00











  • Eh? If Magento loads the wrong store view - then its on page links will be from that store irrespective of what is in the browser URL. Magento's URL's are not relative to the current domain in the address bar, they are dictated by the currently loaded store configuration. Hence the use of $this->getUrl()

    – Ben Lessani - Sonassi
    Mar 26 '13 at 23:05











  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:56












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f1611%2fwhen-open-a-productin-multi-store-website-it-redirects-to-404-page-not-found%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














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.



http://www.example.com/catalog/product/view/id/XXX/


Replace XXX with the entity id of the product (not the sku!)



If that doesn't work, then the product isn't either




  1. Enabled for that website

  2. Set to be visible in catalogue


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



   http://www.example.com/index.php/catalog/product/view/id/XXX/


If that works, check your web server config for rewrites.






share|improve this answer
























  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:55
















1














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.



http://www.example.com/catalog/product/view/id/XXX/


Replace XXX with the entity id of the product (not the sku!)



If that doesn't work, then the product isn't either




  1. Enabled for that website

  2. Set to be visible in catalogue


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



   http://www.example.com/index.php/catalog/product/view/id/XXX/


If that works, check your web server config for rewrites.






share|improve this answer
























  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:55














1












1








1







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.



http://www.example.com/catalog/product/view/id/XXX/


Replace XXX with the entity id of the product (not the sku!)



If that doesn't work, then the product isn't either




  1. Enabled for that website

  2. Set to be visible in catalogue


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



   http://www.example.com/index.php/catalog/product/view/id/XXX/


If that works, check your web server config for rewrites.






share|improve this answer













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.



http://www.example.com/catalog/product/view/id/XXX/


Replace XXX with the entity id of the product (not the sku!)



If that doesn't work, then the product isn't either




  1. Enabled for that website

  2. Set to be visible in catalogue


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



   http://www.example.com/index.php/catalog/product/view/id/XXX/


If that works, check your web server config for rewrites.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 26 '13 at 22:45









Ben Lessani - SonassiBen Lessani - Sonassi

16.7k43865




16.7k43865













  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:55



















  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:55

















For Multi Website, is necessary for creating Symbolic link

– zus
Feb 22 '18 at 5:55





For Multi Website, is necessary for creating Symbolic link

– zus
Feb 22 '18 at 5:55













0














Follow these steps until the problem is solved or you reach the end of the list.




  1. Clear the cache (contents of folder var/cache)

  2. If you have other cache systems (full page cache for example) clear
    them

  3. Check if the product is assigned to that website.

  4. Check if the product is enabled.

  5. Check if the visibility on that website is 'catalog' or 'catalog,
    search'.

  6. Save the product again in the admin.

  7. Rebuild all your indexes. There might be a problem with the url
    rewrites.






share|improve this answer
























  • Everything done already, these steps are basic to be followed when any result not come-out.

    – mIhAwk
    Mar 26 '13 at 15:16











  • can you provide a link to the website? maybe it helps.

    – Marius
    Mar 26 '13 at 15:31






  • 1





    Please give me your email, i send you there.

    – mIhAwk
    Mar 26 '13 at 16:13


















0














Follow these steps until the problem is solved or you reach the end of the list.




  1. Clear the cache (contents of folder var/cache)

  2. If you have other cache systems (full page cache for example) clear
    them

  3. Check if the product is assigned to that website.

  4. Check if the product is enabled.

  5. Check if the visibility on that website is 'catalog' or 'catalog,
    search'.

  6. Save the product again in the admin.

  7. Rebuild all your indexes. There might be a problem with the url
    rewrites.






share|improve this answer
























  • Everything done already, these steps are basic to be followed when any result not come-out.

    – mIhAwk
    Mar 26 '13 at 15:16











  • can you provide a link to the website? maybe it helps.

    – Marius
    Mar 26 '13 at 15:31






  • 1





    Please give me your email, i send you there.

    – mIhAwk
    Mar 26 '13 at 16:13
















0












0








0







Follow these steps until the problem is solved or you reach the end of the list.




  1. Clear the cache (contents of folder var/cache)

  2. If you have other cache systems (full page cache for example) clear
    them

  3. Check if the product is assigned to that website.

  4. Check if the product is enabled.

  5. Check if the visibility on that website is 'catalog' or 'catalog,
    search'.

  6. Save the product again in the admin.

  7. Rebuild all your indexes. There might be a problem with the url
    rewrites.






share|improve this answer













Follow these steps until the problem is solved or you reach the end of the list.




  1. Clear the cache (contents of folder var/cache)

  2. If you have other cache systems (full page cache for example) clear
    them

  3. Check if the product is assigned to that website.

  4. Check if the product is enabled.

  5. Check if the visibility on that website is 'catalog' or 'catalog,
    search'.

  6. Save the product again in the admin.

  7. Rebuild all your indexes. There might be a problem with the url
    rewrites.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 26 '13 at 15:12









MariusMarius

167k28319686




167k28319686













  • Everything done already, these steps are basic to be followed when any result not come-out.

    – mIhAwk
    Mar 26 '13 at 15:16











  • can you provide a link to the website? maybe it helps.

    – Marius
    Mar 26 '13 at 15:31






  • 1





    Please give me your email, i send you there.

    – mIhAwk
    Mar 26 '13 at 16:13





















  • Everything done already, these steps are basic to be followed when any result not come-out.

    – mIhAwk
    Mar 26 '13 at 15:16











  • can you provide a link to the website? maybe it helps.

    – Marius
    Mar 26 '13 at 15:31






  • 1





    Please give me your email, i send you there.

    – mIhAwk
    Mar 26 '13 at 16:13



















Everything done already, these steps are basic to be followed when any result not come-out.

– mIhAwk
Mar 26 '13 at 15:16





Everything done already, these steps are basic to be followed when any result not come-out.

– mIhAwk
Mar 26 '13 at 15:16













can you provide a link to the website? maybe it helps.

– Marius
Mar 26 '13 at 15:31





can you provide a link to the website? maybe it helps.

– Marius
Mar 26 '13 at 15:31




1




1





Please give me your email, i send you there.

– mIhAwk
Mar 26 '13 at 16:13







Please give me your email, i send you there.

– mIhAwk
Mar 26 '13 at 16:13













0














You're using multi-store, do you have a discrete MAGE_RUN_CODE or 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:




  1. Directly in your index.php, e.g. a case statement based on HTTP_HOST or domain name - passing them directly to Mage::run($mageRunCode, $mageRunType);.


  2. In your Apache virtualhost (or similar) per domain using SetEnv.


  3. 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.






share|improve this answer
























  • If the product is viewable, surely the store code is already set to be able to see the product to click?

    – Ben Lessani - Sonassi
    Mar 26 '13 at 22:39











  • It's certainly possible. What if the Apache VirtualHost is serving on example.com and www.example.com. But the store code has been only mapped correctly for example.com, maybe bad regex that doesn't take subdomains in to account. Magento is set to base_url of www.example.com. So you hit example.com, the store displays and it works but all the generated URLs are www.example.com, so they'll result in a 404.

    – rjocoleman
    Mar 26 '13 at 23:00











  • Eh? If Magento loads the wrong store view - then its on page links will be from that store irrespective of what is in the browser URL. Magento's URL's are not relative to the current domain in the address bar, they are dictated by the currently loaded store configuration. Hence the use of $this->getUrl()

    – Ben Lessani - Sonassi
    Mar 26 '13 at 23:05











  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:56
















0














You're using multi-store, do you have a discrete MAGE_RUN_CODE or 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:




  1. Directly in your index.php, e.g. a case statement based on HTTP_HOST or domain name - passing them directly to Mage::run($mageRunCode, $mageRunType);.


  2. In your Apache virtualhost (or similar) per domain using SetEnv.


  3. 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.






share|improve this answer
























  • If the product is viewable, surely the store code is already set to be able to see the product to click?

    – Ben Lessani - Sonassi
    Mar 26 '13 at 22:39











  • It's certainly possible. What if the Apache VirtualHost is serving on example.com and www.example.com. But the store code has been only mapped correctly for example.com, maybe bad regex that doesn't take subdomains in to account. Magento is set to base_url of www.example.com. So you hit example.com, the store displays and it works but all the generated URLs are www.example.com, so they'll result in a 404.

    – rjocoleman
    Mar 26 '13 at 23:00











  • Eh? If Magento loads the wrong store view - then its on page links will be from that store irrespective of what is in the browser URL. Magento's URL's are not relative to the current domain in the address bar, they are dictated by the currently loaded store configuration. Hence the use of $this->getUrl()

    – Ben Lessani - Sonassi
    Mar 26 '13 at 23:05











  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:56














0












0








0







You're using multi-store, do you have a discrete MAGE_RUN_CODE or 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:




  1. Directly in your index.php, e.g. a case statement based on HTTP_HOST or domain name - passing them directly to Mage::run($mageRunCode, $mageRunType);.


  2. In your Apache virtualhost (or similar) per domain using SetEnv.


  3. 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.






share|improve this answer













You're using multi-store, do you have a discrete MAGE_RUN_CODE or 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:




  1. Directly in your index.php, e.g. a case statement based on HTTP_HOST or domain name - passing them directly to Mage::run($mageRunCode, $mageRunType);.


  2. In your Apache virtualhost (or similar) per domain using SetEnv.


  3. 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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 26 '13 at 20:08









rjocolemanrjocoleman

29614




29614













  • If the product is viewable, surely the store code is already set to be able to see the product to click?

    – Ben Lessani - Sonassi
    Mar 26 '13 at 22:39











  • It's certainly possible. What if the Apache VirtualHost is serving on example.com and www.example.com. But the store code has been only mapped correctly for example.com, maybe bad regex that doesn't take subdomains in to account. Magento is set to base_url of www.example.com. So you hit example.com, the store displays and it works but all the generated URLs are www.example.com, so they'll result in a 404.

    – rjocoleman
    Mar 26 '13 at 23:00











  • Eh? If Magento loads the wrong store view - then its on page links will be from that store irrespective of what is in the browser URL. Magento's URL's are not relative to the current domain in the address bar, they are dictated by the currently loaded store configuration. Hence the use of $this->getUrl()

    – Ben Lessani - Sonassi
    Mar 26 '13 at 23:05











  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:56



















  • If the product is viewable, surely the store code is already set to be able to see the product to click?

    – Ben Lessani - Sonassi
    Mar 26 '13 at 22:39











  • It's certainly possible. What if the Apache VirtualHost is serving on example.com and www.example.com. But the store code has been only mapped correctly for example.com, maybe bad regex that doesn't take subdomains in to account. Magento is set to base_url of www.example.com. So you hit example.com, the store displays and it works but all the generated URLs are www.example.com, so they'll result in a 404.

    – rjocoleman
    Mar 26 '13 at 23:00











  • Eh? If Magento loads the wrong store view - then its on page links will be from that store irrespective of what is in the browser URL. Magento's URL's are not relative to the current domain in the address bar, they are dictated by the currently loaded store configuration. Hence the use of $this->getUrl()

    – Ben Lessani - Sonassi
    Mar 26 '13 at 23:05











  • For Multi Website, is necessary for creating Symbolic link

    – zus
    Feb 22 '18 at 5:56

















If the product is viewable, surely the store code is already set to be able to see the product to click?

– Ben Lessani - Sonassi
Mar 26 '13 at 22:39





If the product is viewable, surely the store code is already set to be able to see the product to click?

– Ben Lessani - Sonassi
Mar 26 '13 at 22:39













It's certainly possible. What if the Apache VirtualHost is serving on example.com and www.example.com. But the store code has been only mapped correctly for example.com, maybe bad regex that doesn't take subdomains in to account. Magento is set to base_url of www.example.com. So you hit example.com, the store displays and it works but all the generated URLs are www.example.com, so they'll result in a 404.

– rjocoleman
Mar 26 '13 at 23:00





It's certainly possible. What if the Apache VirtualHost is serving on example.com and www.example.com. But the store code has been only mapped correctly for example.com, maybe bad regex that doesn't take subdomains in to account. Magento is set to base_url of www.example.com. So you hit example.com, the store displays and it works but all the generated URLs are www.example.com, so they'll result in a 404.

– rjocoleman
Mar 26 '13 at 23:00













Eh? If Magento loads the wrong store view - then its on page links will be from that store irrespective of what is in the browser URL. Magento's URL's are not relative to the current domain in the address bar, they are dictated by the currently loaded store configuration. Hence the use of $this->getUrl()

– Ben Lessani - Sonassi
Mar 26 '13 at 23:05





Eh? If Magento loads the wrong store view - then its on page links will be from that store irrespective of what is in the browser URL. Magento's URL's are not relative to the current domain in the address bar, they are dictated by the currently loaded store configuration. Hence the use of $this->getUrl()

– Ben Lessani - Sonassi
Mar 26 '13 at 23:05













For Multi Website, is necessary for creating Symbolic link

– zus
Feb 22 '18 at 5:56





For Multi Website, is necessary for creating Symbolic link

– zus
Feb 22 '18 at 5:56


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f1611%2fwhen-open-a-productin-multi-store-website-it-redirects-to-404-page-not-found%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto