WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] GET URI or Parsell Permalink (2 posts)

  1. evlenirikbiz
    Member
    Posted 5 years ago #

    Hi all!

    I want to make like that..

    <a href="http://mysite.com/en/about-us/history/">History in English version </a>
    
    <a href="http://mysite.com/ru/about-us/history/">History in Russian version </a>

    so, How can I change en <-> ru anywhere?

    I used: <?php echo get_permalink(); ?> but it gives us full of URL

    have you any idea?

    I know in PHP $_SERVER . But how can i make it on WP?

  2. evlenirikbiz
    Member
    Posted 5 years ago #

    $_SERVER['PHP_SELF'] doesn't give up separated permalinks.

    But it's working any php page like this.

    For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar  would be /test.php/foo.bar 
    
    I want to make this smillar on WP:  http://example.com/EN/about   ->  http://example.com/RU/about

Topic Closed

This topic has been closed to new replies.

About this Topic