Support » Plugin: Polylang » Redirect language to default with htaccess

  • nacionarte

    (@nacionarte)


    Hi,

    I want to fully block a language,

    I was wondering if would be possible to redirect a language that exists ( but is not intended to be public or visible) to the default language.

    I`ve tried something like:
    RewriteRule (http://domain.com/)es(/.*) $1en/$2 [NC,L]

    Does not work and I presume that Polylang interfere here
    Is it ?

    Hiding the target language flag in the selector plus this, would be a quick and dirty way to prevent a language for been accessed.

    Thanks

    https://wordpress.org/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect language to default with htaccess’ is closed to new replies.