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;
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,

7) after run 127.0.0.1:8080/usa return 404 error , how can i solve this issue?
magento2.3 localhost multi-website wamp
add a comment |
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,

7) after run 127.0.0.1:8080/usa return 404 error , how can i solve this issue?
magento2.3 localhost multi-website wamp
add a comment |
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,

7) after run 127.0.0.1:8080/usa return 404 error , how can i solve this issue?
magento2.3 localhost multi-website wamp
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,

7) after run 127.0.0.1:8080/usa return 404 error , how can i solve this issue?
magento2.3 localhost multi-website wamp
magento2.3 localhost multi-website wamp
edited Jan 4 at 11:43
zus
asked Jan 4 at 5:03
zuszus
85119
85119
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
- Check that you have enabled
To include the store code in URLsas explained in user guide here. Try to either the
.htaccessor 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
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 youincluded the store code in URLsfrom admin config ?
– Milind Singh
Jan 4 at 8:45
Also can you addfirst_storein 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
|
show 1 more comment
You need to set the Base URL for the store view in the admin. I had the same issue until I did that.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
- Check that you have enabled
To include the store code in URLsas explained in user guide here. Try to either the
.htaccessor 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
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 youincluded the store code in URLsfrom admin config ?
– Milind Singh
Jan 4 at 8:45
Also can you addfirst_storein 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
|
show 1 more comment
- Check that you have enabled
To include the store code in URLsas explained in user guide here. Try to either the
.htaccessor 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
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 youincluded the store code in URLsfrom admin config ?
– Milind Singh
Jan 4 at 8:45
Also can you addfirst_storein 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
|
show 1 more comment
- Check that you have enabled
To include the store code in URLsas explained in user guide here. Try to either the
.htaccessor 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
- Check that you have enabled
To include the store code in URLsas explained in user guide here. Try to either the
.htaccessor 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
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 youincluded the store code in URLsfrom admin config ?
– Milind Singh
Jan 4 at 8:45
Also can you addfirst_storein 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
|
show 1 more comment
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 youincluded the store code in URLsfrom admin config ?
– Milind Singh
Jan 4 at 8:45
Also can you addfirst_storein 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
|
show 1 more comment
You need to set the Base URL for the store view in the admin. I had the same issue until I did that.
add a comment |
You need to set the Base URL for the store view in the admin. I had the same issue until I did that.
add a comment |
You need to set the Base URL for the store view in the admin. I had the same issue until I did that.
You need to set the Base URL for the store view in the admin. I had the same issue until I did that.
answered 4 hours ago
mluntmlunt
7619
7619
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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