Support » Plugin: Permalink Manager Lite » change ?lang==xx to /lang/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @saveatrain,

    Unfortunately I have not tested my plugin with Transposh activated. I guess that a tailored solution will be needed here. I am not sure if it would be possible to rewrite permalinks in this manner.

    Best regards,
    Maciej

    Thread Starter saveatrain

    (@saveatrain)

    can you please test it, its a very common translation plugin
    https://transposh.org/en/

    the setttings comes unchecked for rewrite, so the translations are /……………?lang=XX
    but when you rewrite, it moves to be /XX/……

    Thread Starter saveatrain

    (@saveatrain)

    also probaby this might work
    https://www.smashingmagazine.com/2011/11/introduction-to-url-rewriting/

    just the opposite way

    This could well be implemented with an .htaccess file, like so:

    RewriteEngine On
    #Look for the word “wiki” followed by a slash, and then the article title
    RewriteRule ^wiki/(.+)$ w/index.php?title=$1 [L]

    The previous rule had /?, which meant zero or one slashes. If it had said /+, it would have meant one or more slashes, so even would have worked. In this rule, the dot (.) matches any character, so .+ matches one or more of any character — that is, essentially anything. And the parentheses — ( ) — ask Apache to remember what the .+ is. The rule above, then, tells Apache to look for wiki/ followed by one or more of any character and to remember what it is. This is remembered and then rewritten as $1. So, when the rewriting is finished, wiki/Barack_obama becomes w/index.php?title=Barack_obama`

    Plugin Author Maciej Bis

    (@mbis)

    Hi @saveatrain,

    I am sorry to say, but I will not be able to provide a tailored solution here. I have checked a small piece of Transposh plugin code and found out that my plugin will break one of Transposh functions responsible for detecting the language code.

    As I mentioned earlier, you will need a tailored solution here. Unfortunately my plugin will be useless in this particular case 🙁

    Thread Starter saveatrain

    (@saveatrain)

    thank you buddy for the good service.
    good luck

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.