How to redirect default store view to en?Magento2 multistore - redirect url without store code to default storeView urlMagento 2: Add to Cart and Cart Sharing do not work on multi store setupSetting product price per country while avoiding store view over-duplicationMagento 2 - Create a translatable custom modelMagento 2 change default store view programmaticallyHow to set default store viewHow copy all Categories attributes for store view A to default store viewRedirect to customer's store view on loginMagento 2 : Using default store, view, themesSame content (language) for multiple countries (store views)Remove '.php' from url redirect
Why did they go to Dragonstone?
Why is the Sun made of light elements only?
Was Mohammed the most popular first name for boys born in Berlin in 2018?
How to select certain lines (n, n+4, n+8, n+12...) from the file?
Ex-manager wants to stay in touch, I don't want to
How are one-time password generators like Google Authenticator different from having two passwords?
We are two immediate neighbors who forged our own powers to form concatenated relationship. Who are we?
Cryptography and elliptic curves
Company stopped paying my salary. What are my options?
Why should password hash verification be time constant?
What does formal training in a field mean?
What do "KAL." and "A.S." stand for in this inscription?
Should I pay on student loans in deferment or continue to snowball other debts?
Why is PerfectForwardSecrecy considered OK, when it has same defects as salt-less password hashing?
Does the 500 feet falling cap apply per fall, or per turn?
Why do unstable nuclei form?
How is CoreiX like Corei5, i7 is related to Haswell, Ivy Bridge?
Passport stamps art, can it be done?
Two researchers want to work on the same extension to my paper. Who to help?
What is wrong with my code? RGB potentiometer
What was the notion of limit that Newton used?
Is it a Munchausen Number?
How to slow yourself down (for playing nice with others)
Is it nonsense to say B -> [A -> B]?
How to redirect default store view to en?
Magento2 multistore - redirect url without store code to default storeView urlMagento 2: Add to Cart and Cart Sharing do not work on multi store setupSetting product price per country while avoiding store view over-duplicationMagento 2 - Create a translatable custom modelMagento 2 change default store view programmaticallyHow to set default store viewHow copy all Categories attributes for store view A to default store viewRedirect to customer's store view on loginMagento 2 : Using default store, view, themesSame content (language) for multiple countries (store views)Remove '.php' from url redirect
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've got a store with 2 stores, one with 2 languages and the other just 1.
So:
- Website > Store1 > English (www.site.com/en)
- Website > Store1 > French (www.site.com/fr)
- Website > Store2 > English (www.site2.com/eng)
The problem is that I've setup an in-house dev environment, and on this environment, I am able to go to www.site.com and www.site.com/en and it loads the same content, yet I can remove "use default" and actually show different content between the two store views.
Now I know the best way, would be to get rid of the English specific store_view and have that rely on the default (which is actually in the plan, but not scheduled for awhile). But for now, I'd like to simply force all www.site.com -> www.site.com/en/
when /fr/
has not been explicitly chosen.
Does anybody know of an easy way to apply this in Apache2?
magento2 .htaccess apache
add a comment |
I've got a store with 2 stores, one with 2 languages and the other just 1.
So:
- Website > Store1 > English (www.site.com/en)
- Website > Store1 > French (www.site.com/fr)
- Website > Store2 > English (www.site2.com/eng)
The problem is that I've setup an in-house dev environment, and on this environment, I am able to go to www.site.com and www.site.com/en and it loads the same content, yet I can remove "use default" and actually show different content between the two store views.
Now I know the best way, would be to get rid of the English specific store_view and have that rely on the default (which is actually in the plan, but not scheduled for awhile). But for now, I'd like to simply force all www.site.com -> www.site.com/en/
when /fr/
has not been explicitly chosen.
Does anybody know of an easy way to apply this in Apache2?
magento2 .htaccess apache
You should try this : > Magento2 multistore - redirect url without store code to default > storeView url
– Saphal Jha
2 days ago
I'm trying to avoid doing it at the code level. I'd prefer to apply the change in Apache2 is possible.
– Spyrule
yesterday
add a comment |
I've got a store with 2 stores, one with 2 languages and the other just 1.
So:
- Website > Store1 > English (www.site.com/en)
- Website > Store1 > French (www.site.com/fr)
- Website > Store2 > English (www.site2.com/eng)
The problem is that I've setup an in-house dev environment, and on this environment, I am able to go to www.site.com and www.site.com/en and it loads the same content, yet I can remove "use default" and actually show different content between the two store views.
Now I know the best way, would be to get rid of the English specific store_view and have that rely on the default (which is actually in the plan, but not scheduled for awhile). But for now, I'd like to simply force all www.site.com -> www.site.com/en/
when /fr/
has not been explicitly chosen.
Does anybody know of an easy way to apply this in Apache2?
magento2 .htaccess apache
I've got a store with 2 stores, one with 2 languages and the other just 1.
So:
- Website > Store1 > English (www.site.com/en)
- Website > Store1 > French (www.site.com/fr)
- Website > Store2 > English (www.site2.com/eng)
The problem is that I've setup an in-house dev environment, and on this environment, I am able to go to www.site.com and www.site.com/en and it loads the same content, yet I can remove "use default" and actually show different content between the two store views.
Now I know the best way, would be to get rid of the English specific store_view and have that rely on the default (which is actually in the plan, but not scheduled for awhile). But for now, I'd like to simply force all www.site.com -> www.site.com/en/
when /fr/
has not been explicitly chosen.
Does anybody know of an easy way to apply this in Apache2?
magento2 .htaccess apache
magento2 .htaccess apache
edited yesterday
Spyrule
asked May 6 at 18:36
SpyruleSpyrule
174118
174118
You should try this : > Magento2 multistore - redirect url without store code to default > storeView url
– Saphal Jha
2 days ago
I'm trying to avoid doing it at the code level. I'd prefer to apply the change in Apache2 is possible.
– Spyrule
yesterday
add a comment |
You should try this : > Magento2 multistore - redirect url without store code to default > storeView url
– Saphal Jha
2 days ago
I'm trying to avoid doing it at the code level. I'd prefer to apply the change in Apache2 is possible.
– Spyrule
yesterday
You should try this : > Magento2 multistore - redirect url without store code to default > storeView url
– Saphal Jha
2 days ago
You should try this : > Magento2 multistore - redirect url without store code to default > storeView url
– Saphal Jha
2 days ago
I'm trying to avoid doing it at the code level. I'd prefer to apply the change in Apache2 is possible.
– Spyrule
yesterday
I'm trying to avoid doing it at the code level. I'd prefer to apply the change in Apache2 is possible.
– Spyrule
yesterday
add a comment |
0
active
oldest
votes
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%2f273570%2fhow-to-redirect-default-store-view-to-en%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f273570%2fhow-to-redirect-default-store-view-to-en%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
You should try this : > Magento2 multistore - redirect url without store code to default > storeView url
– Saphal Jha
2 days ago
I'm trying to avoid doing it at the code level. I'd prefer to apply the change in Apache2 is possible.
– Spyrule
yesterday