Want to show the Stores based on countries The 2019 Stack Overflow Developer Survey Results Are InGeoIp-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

Output the Arecibo Message

Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?

Are spiders unable to hurt humans, especially very small spiders?

Did Section 31 appear in Star Trek: The Next Generation?

Am I thawing this London Broil safely?

Does a dangling wire really electrocute me if I'm standing in water?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Is bread bad for ducks?

Protecting Dualbooting Windows from dangerous code (like rm -rf)

How are circuits which use complex ICs normally simulated?

Button changing it's text & action. Good or terrible?

Why isn't airport relocation done gradually?

Is three citations per paragraph excessive for undergraduate research paper?

Apparent duplicates between Haynes service instructions and MOT

What is the closest word meaning "respect for time / mindful"

What is the accessibility of a package's `Private` context variables?

What tool would a Roman-age civilization have for the breaking of silver and other metals into dust?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

Write faster on AT24C32

Is a "Democratic" Oligarchy-Style System Possible?

How can I autofill dates in Excel excluding Sunday?

How to support a colleague who finds meetings extremely tiring?

What is the most effective way of iterating a std::vector and why?

Are there incongruent pythagorean triangles with the same perimeter and same area?



Want to show the Stores based on countries



The 2019 Stack Overflow Developer Survey Results Are InGeoIp-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;








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.










share|improve this question
























  • 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

















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.










share|improve this question
























  • 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













0












0








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










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



);













draft saved

draft discarded


















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















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%2f269333%2fwant-to-show-the-stores-based-on-countries%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

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form