Support » How-To and Troubleshooting » [Resolved] GET URI or Parsell Permalink

[Resolved] GET URI or Parsell Permalink

  • 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?

Viewing 1 replies (of 1 total)
  • $_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
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] GET URI or Parsell Permalink’ is closed to new replies.
Skip to toolbar