change part of url (3 posts)

  1. docflo
    Posted 7 years ago #

    Hi again,

    let's say I have two WordPress installs with the same content in two languages. One can be reached at http://example.com/nl/ and the other one at http://example.com/en/.

    How can I create a link from any page of one language's blog that goes to the corresponding page on the other language's blog?

  2. moshu
    Posted 7 years ago #

    Short of linking manually I don't see any way to do it as you want it.

    Most people do NOT use two [2] WP installations but some kind of language plugin that makes possible to have a multilingual blog (and automatic link between the language variants of the smae post).

  3. docflo
    Posted 7 years ago #

    thanks for the response!

    Yeah, I know about those plugins. But they were not practical for this project.

    I guess there are some ways to get a link and manipulate it somehow withe php, but I don't know anything about that.

    If you have: <?php echo $_SERVER ['REQUEST_URI']?> it spits out the URI of the page you are on. No idea how to manipulate that. I guess I should go to a .php forum...

Topic Closed

This topic has been closed to new replies.

About this Topic