GithubHelp home page GithubHelp logo

bjoerne2 / language-redirect Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 11.0 34 KB

WordPress plugin which redirects from the root site of a multisite project to a language specific network site.

PHP 70.69% Gherkin 29.31%

language-redirect's People

Contributors

bjoerne2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

language-redirect's Issues

ERR_TOO_MANY_REDIRECTS

Hi,

Hope you can help me out with this issue. I have 4 pages in the same wordpress:

I installed the plugin and the settings are:

  1. Default redirect location: /en/
  2. Language redirect mapping:
    es=/es/
    pt=/pt/

I see that redirection is sending me to /pt/ and that is OK, becuase my browser has portuguese as a language. However, the website is not been shown. I'm getting the error ERR_TOO_MANY_REDIRECTS and do not know what else to look at to fix it.

Thanks,
Jay

Redirect whole site or home page only

Hi, this plugin works well with my WP 4.9.4 installation, my site has two languages.

There is a problem, when I share a link to friends who speak different language with me, they will be redirected to their browser's language, not the one I shared.

So it might be reasonable to offer the site owner an option:

  1. redirect homepage ONLY
  2. redirect whole site

Redirect exceptions

We have a WordPress Network with your plugin and it works as it should. Thank you!
Our challenge is that access to API also redirects.

Could it be possible to make some exceptions?

For example,

Redirect all URLs except
/wc-api/v3/
/wc-api/v2/
/wc-api/v1/

Thank you.

Absolute instead of Relative URLs

Hi,
Would it be easy to switch this to Absolute URLs instead of Relative URLs?

I'd like to redirect to another host entirely. I'd use a simple JS redirect but another issue is that by default my Wordpress stack adds /wp/ before the relative URL specified in the plugin.

If this is super simple, I'd love some help or even a tip in the right direction. I think having the ability to choose between absolute and relative would be ideal.

Thanks!

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.