WordPress.org

Ready to get started?Download WordPress

Forums

Transposh WordPress Translation
Posts duplicate problem (6 posts)

  1. des1slav
    Member
    Posted 1 year ago #

    Google index my website with http://www.url.com/eu/post/ and http://www.url.com/post/?lang=en

    I need to clear this duplicates. Is there a way to set noindex,noarchive meta tag for all ?lang= urls?

    I`m using Platinum SEO pack

    Thanks

    http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/

  2. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    You can do this in a code in your header...

    if (isset($_GET['lang']) {
    echo 'whatevermetas';
    }
  3. des1slav
    Member
    Posted 1 year ago #

    Nothing happened.
    Is there a way to blog all urls with "?lang=" in robots.txt
    ?

  4. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    What exactly did you try and where? and no, I don't know of such a way in robots.txt

  5. des1slav
    Member
    Posted 1 year ago #

    I just put the code into header.php with and without <?php ?>

  6. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    since this is php, you should probably be inside a php block :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic