Magento 2.3.0 - Multi Website Store URL Return 404 errorCreate Multi Website/Stores in magento 2Magento 2: Remove Store Code in URL only for default storeMagento 2: Multiple websites and stores on apache or nginx serverMagento2 | Multi Domain & Multi WebsiteAll pages return 404 errorMagento 2 Wamp installation CSS/JS files return 404 error - multi storeMulti website multi currency setupMagento 2.1.3 Multi Website or Multi StoreMagento 2 Multi websiteMagento2 | Multi Domain & Multi WebsiteMagento 2 Multi Store Show 404 - Virtual Host with XAMPP404 / 500 after installing Magento 2.3Magento 2.3.0 - Set up multiple websites, stores, and store viewsmagento 2 multi-website This site can’t be reached

Filter any system log file by date or date range

Can I ask the recruiters in my resume to put the reason why I am rejected?

What does "Puller Prush Person" mean?

Why can't I see bouncing of switch on oscilloscope screen?

DC-DC converter from low voltage at high current, to high voltage at low current

Is it unprofessional to ask if a job posting on GlassDoor is real?

Important Resources for Dark Age Civilizations?

Why does Kotter return in Welcome Back Kotter?

High voltage LED indicator 40-1000 VDC without additional power supply

Can a monk's single staff be considered dual wielded, as per the Dual Wielder feat?

Why do I get two different answers for this counting problem?

Could an aircraft fly or hover using only jets of compressed air?

Why can't we play rap on piano?

Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?

Today is the Center

Do other languages have an "irreversible aspect"?

How old can references or sources in a thesis be?

Does detail obscure or enhance action?

How does quantile regression compare to logistic regression with the variable split at the quantile?

Horror movie about a virus at the prom; beginning and end are stylized as a cartoon

Unable to deploy metadata from Partner Developer scratch org because of extra fields

Perform and show arithmetic with LuaLaTeX

What defenses are there against being summoned by the Gate spell?

Do infinite dimensional systems make sense?



Magento 2.3.0 - Multi Website Store URL Return 404 error


Create Multi Website/Stores in magento 2Magento 2: Remove Store Code in URL only for default storeMagento 2: Multiple websites and stores on apache or nginx serverMagento2 | Multi Domain & Multi WebsiteAll pages return 404 errorMagento 2 Wamp installation CSS/JS files return 404 error - multi storeMulti website multi currency setupMagento 2.1.3 Multi Website or Multi StoreMagento 2 Multi websiteMagento2 | Multi Domain & Multi WebsiteMagento 2 Multi Store Show 404 - Virtual Host with XAMPP404 / 500 after installing Magento 2.3Magento 2.3.0 - Set up multiple websites, stores, and store viewsmagento 2 multi-website This site can’t be reached






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















Workout :



1) Created new folder in Root folder named usa,



2) Copy index.php and .htaccess from root folder and moved to usa folder



3) Created symbolic links to usa folder, usa symbolic links are,




C:wampwwwfirst_store>mklink /d ..first_storeusaapp.app

C:wampwwwfirst_store>mklink /d ..first_storeusapub.pub

C:wampwwwfirst_store>mklink /d ..first_storeusalib.lib

C:wampwwwfirst_store>mklink /d ..first_storeusavar.var




4)usa index.php,



Set values for the MAGE_RUN_TYPE and MAGE_RUN_CODE



Open the index.php file under application root directory



Replacing this code: $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $_SERVER);

by these codes:

switch($_SERVER['HTTP_HOST'])
case 'http://127.0.0.1:8080/first_store':
$mageRunCode = 'base';
$mageRunType = 'website';
break;
case 'http://127.0.0.1:8080/usa':
$mageRunCode = 'usa_website';
$mageRunType = 'website';
break;

$params = $_SERVER;
$params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
$params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;
$bootstrap = MagentoFrameworkAppBootstrap::create(BP, $params);


5) usa .htaccess file,



## enable rewrites

Options +FollowSymLinks
RewriteEngine on

SetEnvIf Host .*http://127.0.0.1:8080/usa/.* MAGE_RUN_CODE=usa_website
SetEnvIf Host .*http://127.0.0.1:8080/usa/.* MAGE_RUN_TYPE=website


6) Store configuration,



enter image description here



7) after run 127.0.0.1:8080/usa return 404 error , how can i solve this issue?










share|improve this question






























    4















    Workout :



    1) Created new folder in Root folder named usa,



    2) Copy index.php and .htaccess from root folder and moved to usa folder



    3) Created symbolic links to usa folder, usa symbolic links are,




    C:wampwwwfirst_store>mklink /d ..first_storeusaapp.app

    C:wampwwwfirst_store>mklink /d ..first_storeusapub.pub

    C:wampwwwfirst_store>mklink /d ..first_storeusalib.lib

    C:wampwwwfirst_store>mklink /d ..first_storeusavar.var




    4)usa index.php,



    Set values for the MAGE_RUN_TYPE and MAGE_RUN_CODE



    Open the index.php file under application root directory



    Replacing this code: $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $_SERVER);

    by these codes:

    switch($_SERVER['HTTP_HOST'])
    case 'http://127.0.0.1:8080/first_store':
    $mageRunCode = 'base';
    $mageRunType = 'website';
    break;
    case 'http://127.0.0.1:8080/usa':
    $mageRunCode = 'usa_website';
    $mageRunType = 'website';
    break;

    $params = $_SERVER;
    $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
    $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;
    $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $params);


    5) usa .htaccess file,



    ## enable rewrites

    Options +FollowSymLinks
    RewriteEngine on

    SetEnvIf Host .*http://127.0.0.1:8080/usa/.* MAGE_RUN_CODE=usa_website
    SetEnvIf Host .*http://127.0.0.1:8080/usa/.* MAGE_RUN_TYPE=website


    6) Store configuration,



    enter image description here



    7) after run 127.0.0.1:8080/usa return 404 error , how can i solve this issue?










    share|improve this question


























      4












      4








      4


      2






      Workout :



      1) Created new folder in Root folder named usa,



      2) Copy index.php and .htaccess from root folder and moved to usa folder



      3) Created symbolic links to usa folder, usa symbolic links are,




      C:wampwwwfirst_store>mklink /d ..first_storeusaapp.app

      C:wampwwwfirst_store>mklink /d ..first_storeusapub.pub

      C:wampwwwfirst_store>mklink /d ..first_storeusalib.lib

      C:wampwwwfirst_store>mklink /d ..first_storeusavar.var




      4)usa index.php,



      Set values for the MAGE_RUN_TYPE and MAGE_RUN_CODE



      Open the index.php file under application root directory



      Replacing this code: $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $_SERVER);

      by these codes:

      switch($_SERVER['HTTP_HOST'])
      case 'http://127.0.0.1:8080/first_store':
      $mageRunCode = 'base';
      $mageRunType = 'website';
      break;
      case 'http://127.0.0.1:8080/usa':
      $mageRunCode = 'usa_website';
      $mageRunType = 'website';
      break;

      $params = $_SERVER;
      $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
      $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;
      $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $params);


      5) usa .htaccess file,



      ## enable rewrites

      Options +FollowSymLinks
      RewriteEngine on

      SetEnvIf Host .*http://127.0.0.1:8080/usa/.* MAGE_RUN_CODE=usa_website
      SetEnvIf Host .*http://127.0.0.1:8080/usa/.* MAGE_RUN_TYPE=website


      6) Store configuration,



      enter image description here



      7) after run 127.0.0.1:8080/usa return 404 error , how can i solve this issue?










      share|improve this question
















      Workout :



      1) Created new folder in Root folder named usa,



      2) Copy index.php and .htaccess from root folder and moved to usa folder



      3) Created symbolic links to usa folder, usa symbolic links are,




      C:wampwwwfirst_store>mklink /d ..first_storeusaapp.app

      C:wampwwwfirst_store>mklink /d ..first_storeusapub.pub

      C:wampwwwfirst_store>mklink /d ..first_storeusalib.lib

      C:wampwwwfirst_store>mklink /d ..first_storeusavar.var




      4)usa index.php,



      Set values for the MAGE_RUN_TYPE and MAGE_RUN_CODE



      Open the index.php file under application root directory



      Replacing this code: $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $_SERVER);

      by these codes:

      switch($_SERVER['HTTP_HOST'])
      case 'http://127.0.0.1:8080/first_store':
      $mageRunCode = 'base';
      $mageRunType = 'website';
      break;
      case 'http://127.0.0.1:8080/usa':
      $mageRunCode = 'usa_website';
      $mageRunType = 'website';
      break;

      $params = $_SERVER;
      $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
      $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;
      $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $params);


      5) usa .htaccess file,



      ## enable rewrites

      Options +FollowSymLinks
      RewriteEngine on

      SetEnvIf Host .*http://127.0.0.1:8080/usa/.* MAGE_RUN_CODE=usa_website
      SetEnvIf Host .*http://127.0.0.1:8080/usa/.* MAGE_RUN_TYPE=website


      6) Store configuration,



      enter image description here



      7) after run 127.0.0.1:8080/usa return 404 error , how can i solve this issue?







      magento2.3 localhost multi-website wamp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 4 at 11:43







      zus

















      asked Jan 4 at 5:03









      zuszus

      85119




      85119




















          2 Answers
          2






          active

          oldest

          votes


















          2














          1. Check that you have enabled To include the store code in URLs as explained in user guide here.


          2. Try to either the .htaccess or index.php override.
            So you can remove,
            $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
            $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;



            • References:


            • devdocs.magento.com/v2.3/config-guide/multi-site/ms_apache.html


            • devdocs.magento.com/guides/v2.3/config-guide/multi-site/ms_websites.html#multi-storecode-baseurl

            • docs.magento.com/m2/ce/user_guide/stores/store-urls.html






          share|improve this answer























          • After remove $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode; $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType; still getting same error @Milind Singh

            – zus
            Jan 4 at 7:57











          • @zus Have you included the store code in URLs from admin config ?

            – Milind Singh
            Jan 4 at 8:45











          • Also can you add first_store in apache conf

            – Milind Singh
            Jan 4 at 8:47











          • I just want to know how can i add both @Milind Singh

            – zus
            Jan 4 at 8:51












          • can you pls join with chat.stackexchange.com/rooms/87829/… @Milind Singh

            – zus
            Jan 4 at 9:09



















          0














          You need to set the Base URL for the store view in the admin. I had the same issue until I did that.






          share|improve this answer























            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%2f256694%2fmagento-2-3-0-multi-website-store-url-return-404-error%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            1. Check that you have enabled To include the store code in URLs as explained in user guide here.


            2. Try to either the .htaccess or index.php override.
              So you can remove,
              $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
              $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;



              • References:


              • devdocs.magento.com/v2.3/config-guide/multi-site/ms_apache.html


              • devdocs.magento.com/guides/v2.3/config-guide/multi-site/ms_websites.html#multi-storecode-baseurl

              • docs.magento.com/m2/ce/user_guide/stores/store-urls.html






            share|improve this answer























            • After remove $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode; $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType; still getting same error @Milind Singh

              – zus
              Jan 4 at 7:57











            • @zus Have you included the store code in URLs from admin config ?

              – Milind Singh
              Jan 4 at 8:45











            • Also can you add first_store in apache conf

              – Milind Singh
              Jan 4 at 8:47











            • I just want to know how can i add both @Milind Singh

              – zus
              Jan 4 at 8:51












            • can you pls join with chat.stackexchange.com/rooms/87829/… @Milind Singh

              – zus
              Jan 4 at 9:09
















            2














            1. Check that you have enabled To include the store code in URLs as explained in user guide here.


            2. Try to either the .htaccess or index.php override.
              So you can remove,
              $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
              $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;



              • References:


              • devdocs.magento.com/v2.3/config-guide/multi-site/ms_apache.html


              • devdocs.magento.com/guides/v2.3/config-guide/multi-site/ms_websites.html#multi-storecode-baseurl

              • docs.magento.com/m2/ce/user_guide/stores/store-urls.html






            share|improve this answer























            • After remove $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode; $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType; still getting same error @Milind Singh

              – zus
              Jan 4 at 7:57











            • @zus Have you included the store code in URLs from admin config ?

              – Milind Singh
              Jan 4 at 8:45











            • Also can you add first_store in apache conf

              – Milind Singh
              Jan 4 at 8:47











            • I just want to know how can i add both @Milind Singh

              – zus
              Jan 4 at 8:51












            • can you pls join with chat.stackexchange.com/rooms/87829/… @Milind Singh

              – zus
              Jan 4 at 9:09














            2












            2








            2







            1. Check that you have enabled To include the store code in URLs as explained in user guide here.


            2. Try to either the .htaccess or index.php override.
              So you can remove,
              $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
              $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;



              • References:


              • devdocs.magento.com/v2.3/config-guide/multi-site/ms_apache.html


              • devdocs.magento.com/guides/v2.3/config-guide/multi-site/ms_websites.html#multi-storecode-baseurl

              • docs.magento.com/m2/ce/user_guide/stores/store-urls.html






            share|improve this answer













            1. Check that you have enabled To include the store code in URLs as explained in user guide here.


            2. Try to either the .htaccess or index.php override.
              So you can remove,
              $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode;
              $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType;



              • References:


              • devdocs.magento.com/v2.3/config-guide/multi-site/ms_apache.html


              • devdocs.magento.com/guides/v2.3/config-guide/multi-site/ms_websites.html#multi-storecode-baseurl

              • docs.magento.com/m2/ce/user_guide/stores/store-urls.html







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 4 at 7:34









            Milind SinghMilind Singh

            658215




            658215












            • After remove $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode; $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType; still getting same error @Milind Singh

              – zus
              Jan 4 at 7:57











            • @zus Have you included the store code in URLs from admin config ?

              – Milind Singh
              Jan 4 at 8:45











            • Also can you add first_store in apache conf

              – Milind Singh
              Jan 4 at 8:47











            • I just want to know how can i add both @Milind Singh

              – zus
              Jan 4 at 8:51












            • can you pls join with chat.stackexchange.com/rooms/87829/… @Milind Singh

              – zus
              Jan 4 at 9:09


















            • After remove $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode; $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType; still getting same error @Milind Singh

              – zus
              Jan 4 at 7:57











            • @zus Have you included the store code in URLs from admin config ?

              – Milind Singh
              Jan 4 at 8:45











            • Also can you add first_store in apache conf

              – Milind Singh
              Jan 4 at 8:47











            • I just want to know how can i add both @Milind Singh

              – zus
              Jan 4 at 8:51












            • can you pls join with chat.stackexchange.com/rooms/87829/… @Milind Singh

              – zus
              Jan 4 at 9:09

















            After remove $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode; $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType; still getting same error @Milind Singh

            – zus
            Jan 4 at 7:57





            After remove $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = $mageRunCode; $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = $mageRunType; still getting same error @Milind Singh

            – zus
            Jan 4 at 7:57













            @zus Have you included the store code in URLs from admin config ?

            – Milind Singh
            Jan 4 at 8:45





            @zus Have you included the store code in URLs from admin config ?

            – Milind Singh
            Jan 4 at 8:45













            Also can you add first_store in apache conf

            – Milind Singh
            Jan 4 at 8:47





            Also can you add first_store in apache conf

            – Milind Singh
            Jan 4 at 8:47













            I just want to know how can i add both @Milind Singh

            – zus
            Jan 4 at 8:51






            I just want to know how can i add both @Milind Singh

            – zus
            Jan 4 at 8:51














            can you pls join with chat.stackexchange.com/rooms/87829/… @Milind Singh

            – zus
            Jan 4 at 9:09






            can you pls join with chat.stackexchange.com/rooms/87829/… @Milind Singh

            – zus
            Jan 4 at 9:09














            0














            You need to set the Base URL for the store view in the admin. I had the same issue until I did that.






            share|improve this answer



























              0














              You need to set the Base URL for the store view in the admin. I had the same issue until I did that.






              share|improve this answer

























                0












                0








                0







                You need to set the Base URL for the store view in the admin. I had the same issue until I did that.






                share|improve this answer













                You need to set the Base URL for the store view in the admin. I had the same issue until I did that.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 4 hours ago









                mluntmlunt

                7619




                7619



























                    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%2f256694%2fmagento-2-3-0-multi-website-store-url-return-404-error%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

                    Jet Time Laivasto | Lähteet | Aiheesta muualla | NavigointivalikkoJet Time - The CompanyThe CompanyManagementJet Time aloittaa lauantaina Suomi-rekisterissä olevalla Boeing 737 -koneellaJettime Finland Fleet Details and HistoryJettime Fleet Details and HistoryRegional Jet OÜ takes over ATR production for SASJet Time Returns To Its Core BusinessYhtiön kotisivutlaajentamalla

                    Olympian arkeologinen museo Sisällysluettelo Historia ja rakennus | Kokoelmat | Lähteet | Aiheesta muualla | Navigointivalikko37°38′36″N, 21°37′46″EInfobox OKArchaeological Museum of Olympia: HistoryArchaeological Museum of Olympia: DescriptionΜουσείο Ιστορίας των Ολυμπιακών Αγώνων της Αρχαιότητας: ΙστορικόArchaeological Museum of Olympia

                    Äpy Sisällysluettelo Äpyt kautta historian | Esimerkkejä Äpy-huumorista | Katso myös | Kirjallisuutta | Aiheesta muualla | Navigointivalikkowww.äpy.fi