Giter Club home page Giter Club logo

Comments (4)

aelvan avatar aelvan commented on August 28, 2024

Hi,

Ok, so you have some sites where you want to use the redirect functionality, but you have one where you don't want to redirect at all?

Hadn't thought about that scenario, I must admit. :) You could use PHP in your config file to enable/disable geomate, or manipulate the redirectMap, but I'm open adding some way of disabling it in a prettier way through the config. How do you envision that this should work? Would an array of site handles in a config setting work? Or maybe by site group? Or maybe autoRedirectEnabled could either be a boolean like now, but also an array of enabled sites?

from geomate.

nomadic-code avatar nomadic-code commented on August 28, 2024

I did not even realize I could disable in the config file, I should have thought to look for something like that...
I should also say thank you for an awesome (and free!) plugin, regardless of what comes of this discussion, and thank you for responding so quickly to my post.

For site groups vs site handles, I would think site handles would give more power to the user in the event that site groups are not organized efficiently or something. Enabled sites is also an interesting thought; I had only thought of it from the exclusion perspective. For my specific use case, being able to exclude a site would be more efficient than tracking which sites should be included as the number of sites that I need to exclude is just the one out of a current four

from geomate.

chadcrowell avatar chadcrowell commented on August 28, 2024

+1 on this. My current redirectMap is

'redirectMap' => [
            'store' => 'us',
            'www' => '*',
        	],

So, visitors from the US are sent to the "store" site, and everyone else is sent to the "www" site. We're launching a customer portal that needs to be accessible from all countries, so being able to exclude the "customers" site from any redirection would be great. Something like:

'redirectExclude' => ['customers','otherSiteHandle'],
'redirectMap' => [
            'store' => 'us',
            'www' => '*',
        	],

from geomate.

aelvan avatar aelvan commented on August 28, 2024

I added a autoRedirectExclude config setting in v1.2.0 which should address this issue.

from geomate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.