1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

adding more than 1 language or lets say 10 language on same site ?

Discussion in 'Black Hat SEO' started by okiedokie, Aug 19, 2013.

  1. okiedokie

    okiedokie Regular Member

    Joined:
    Feb 27, 2013
    Messages:
    312
    Likes Received:
    163
    what would be the best way to add 20 languages under 1 domain name ?

    i want to put 10 articles of different languages to my site but for 20 different languages .
    what should i choose as title ? can title of my article be in english ?
     
  2. xShivam

    xShivam Registered Member

    Joined:
    Apr 28, 2012
    Messages:
    75
    Likes Received:
    18
    Uh, you can give a value to a parameter in the url like http://www.MySite.com/?lang=EN, or http://www.MySite.com/?lang=FR where lang is the parameter and the value is 'EN', or 'FR' and then use PHP to read that and output the page based on that.
    It would be something like this:
    Code:
    $language = $_GET['lang']
    if (language == 'EN") {
         echo 'Post goes here';
    } else if (language == 'FR') {
         echo 'Poster va ici';
    } else {
         echo 'Post in default language'
    }
    
    You can put links on your page to all the languages you want it to output.
     
    • Thanks Thanks x 1
    Last edited: Aug 19, 2013
  3. okiedokie

    okiedokie Regular Member

    Joined:
    Feb 27, 2013
    Messages:
    312
    Likes Received:
    163
    well can this be done with wordpress blogs ?
    because all i know is to post articles which i will be getting in different languages but i want search engine to know that the italian page that am posting is different from the french one and german once and similarly .