Want to show the Stores based on countries The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)GeoIp-based default currency selection behind VarnishRedirect www to non-www keeping the pathBrowser Language Redirection For Multi Language Stores In Magento 2Issue with Multi Store setup - New NZ site does not load the right storeGet stores countries and Languages REST APIShow different logo based on URLMagento 2.1.9 : Change store based on countryHow can I show all countries in UIcomponent dropdown?How to redirect to particular stores when the site opensI want to Display a Store switcher drop down in top header
Can I visit the Trinity College (Cambridge) library and see some of their rare books
Why can't devices on different VLANs, but on the same subnet, communicate?
Match Roman Numerals
Is an up-to-date browser secure on an out-of-date OS?
Circular reasoning in L'Hopital's rule
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Working through the single responsibility principle (SRP) in Python when calls are expensive
Python - Fishing Simulator
Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)
The following signatures were invalid: EXPKEYSIG 1397BC53640DB551
US Healthcare consultation for visitors
Example of compact Riemannian manifold with only one geodesic.
What information about me do stores get via my credit card?
1960s short story making fun of James Bond-style spy fiction
Sub-subscripts in strings cause different spacings than subscripts
Was credit for the black hole image misappropriated?
How do spell lists change if the party levels up without taking a long rest?
University's motivation for having tenure-track positions
Why can't wing-mounted spoilers be used to steepen approaches?
"is" operation returns false even though two objects have same id
Presidential Pardon
What's the point in a preamp?
Mortgage adviser recommends a longer term than necessary combined with overpayments
Button changing its text & action. Good or terrible?
Want to show the Stores based on countries
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)GeoIp-based default currency selection behind VarnishRedirect www to non-www keeping the pathBrowser Language Redirection For Multi Language Stores In Magento 2Issue with Multi Store setup - New NZ site does not load the right storeGet stores countries and Languages REST APIShow different logo based on URLMagento 2.1.9 : Change store based on countryHow can I show all countries in UIcomponent dropdown?How to redirect to particular stores when the site opensI want to Display a Store switcher drop down in top header
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I need to show the stores name like saudi / oman / dubai. Each stores have two store views (Arbic & English). I want to display these Stores according to their countries.
For Example Saudi Store will open on saudi with its two store views.
I had tried with GeoIP .htaccess
file redirection like below,
GeoIPEnable On
RewriteEngine On
RewriteCond %ENV:GEOIP_COUNTRY_CODE ^SA$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
It is going to the Redirection Loop. I had also tried this Geo Switch Module It makes redirection but not allowing another Store view. Also website staring time loading is very slow. I had also tried Amasty Geo IP Extension. It does not supports varnish enabled sites.
I hope .htaccess
file is the Best way to redirect the sites.
Please Anyone Guide me for this requirement That will be highly Appreciated.
magento2 redirect varnish htaccess store-switcher
add a comment |
I need to show the stores name like saudi / oman / dubai. Each stores have two store views (Arbic & English). I want to display these Stores according to their countries.
For Example Saudi Store will open on saudi with its two store views.
I had tried with GeoIP .htaccess
file redirection like below,
GeoIPEnable On
RewriteEngine On
RewriteCond %ENV:GEOIP_COUNTRY_CODE ^SA$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
It is going to the Redirection Loop. I had also tried this Geo Switch Module It makes redirection but not allowing another Store view. Also website staring time loading is very slow. I had also tried Amasty Geo IP Extension. It does not supports varnish enabled sites.
I hope .htaccess
file is the Best way to redirect the sites.
Please Anyone Guide me for this requirement That will be highly Appreciated.
magento2 redirect varnish htaccess store-switcher
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
Apr 9 at 12:46
@RajMohanR yes i had installed and enabled mod_geoip on my server. While i use htacess file method. site goes in redirection loop due to varnish cache i think. If you have solution please share it to me
– Ask Bytes
Apr 9 at 13:05
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
Apr 9 at 14:13
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
Apr 9 at 14:31
add a comment |
I need to show the stores name like saudi / oman / dubai. Each stores have two store views (Arbic & English). I want to display these Stores according to their countries.
For Example Saudi Store will open on saudi with its two store views.
I had tried with GeoIP .htaccess
file redirection like below,
GeoIPEnable On
RewriteEngine On
RewriteCond %ENV:GEOIP_COUNTRY_CODE ^SA$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
It is going to the Redirection Loop. I had also tried this Geo Switch Module It makes redirection but not allowing another Store view. Also website staring time loading is very slow. I had also tried Amasty Geo IP Extension. It does not supports varnish enabled sites.
I hope .htaccess
file is the Best way to redirect the sites.
Please Anyone Guide me for this requirement That will be highly Appreciated.
magento2 redirect varnish htaccess store-switcher
I need to show the stores name like saudi / oman / dubai. Each stores have two store views (Arbic & English). I want to display these Stores according to their countries.
For Example Saudi Store will open on saudi with its two store views.
I had tried with GeoIP .htaccess
file redirection like below,
GeoIPEnable On
RewriteEngine On
RewriteCond %ENV:GEOIP_COUNTRY_CODE ^SA$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
It is going to the Redirection Loop. I had also tried this Geo Switch Module It makes redirection but not allowing another Store view. Also website staring time loading is very slow. I had also tried Amasty Geo IP Extension. It does not supports varnish enabled sites.
I hope .htaccess
file is the Best way to redirect the sites.
Please Anyone Guide me for this requirement That will be highly Appreciated.
magento2 redirect varnish htaccess store-switcher
magento2 redirect varnish htaccess store-switcher
edited Apr 9 at 9:08
Ask Bytes
asked Apr 9 at 9:02
Ask BytesAsk Bytes
357215
357215
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
Apr 9 at 12:46
@RajMohanR yes i had installed and enabled mod_geoip on my server. While i use htacess file method. site goes in redirection loop due to varnish cache i think. If you have solution please share it to me
– Ask Bytes
Apr 9 at 13:05
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
Apr 9 at 14:13
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
Apr 9 at 14:31
add a comment |
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
Apr 9 at 12:46
@RajMohanR yes i had installed and enabled mod_geoip on my server. While i use htacess file method. site goes in redirection loop due to varnish cache i think. If you have solution please share it to me
– Ask Bytes
Apr 9 at 13:05
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
Apr 9 at 14:13
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
Apr 9 at 14:31
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
Apr 9 at 12:46
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
Apr 9 at 12:46
@RajMohanR yes i had installed and enabled mod_geoip on my server. While i use htacess file method. site goes in redirection loop due to varnish cache i think. If you have solution please share it to me
– Ask Bytes
Apr 9 at 13:05
@RajMohanR yes i had installed and enabled mod_geoip on my server. While i use htacess file method. site goes in redirection loop due to varnish cache i think. If you have solution please share it to me
– Ask Bytes
Apr 9 at 13:05
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
Apr 9 at 14:13
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
Apr 9 at 14:13
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
Apr 9 at 14:31
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
Apr 9 at 14:31
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%2f269333%2fwant-to-show-the-stores-based-on-countries%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%2f269333%2fwant-to-show-the-stores-based-on-countries%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
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
Apr 9 at 12:46
@RajMohanR yes i had installed and enabled mod_geoip on my server. While i use htacess file method. site goes in redirection loop due to varnish cache i think. If you have solution please share it to me
– Ask Bytes
Apr 9 at 13:05
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
Apr 9 at 14:13
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
Apr 9 at 14:31