Want to show the Stores based on countries
.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
yesterday
@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
yesterday
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
yesterday
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
yesterday
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 yesterday
Ask Bytes
asked yesterday
Ask BytesAsk Bytes
357215
357215
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
yesterday
@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
yesterday
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
yesterday
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
yesterday
add a comment |
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
yesterday
@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
yesterday
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
yesterday
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
yesterday
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
yesterday
Have you installed and enabled mod_geoip in your server for your redirection to work fine?
– Raj Mohan R
yesterday
@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
yesterday
@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
yesterday
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
yesterday
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
yesterday
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
yesterday
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
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%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
yesterday
@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
yesterday
What about this one github.com/iwebhosting/varnish-geoip
– Raj Mohan R
yesterday
@RajMohanR i will look that module and update here. Is that is enough for varnish cache issue?
– Ask Bytes
yesterday