Jump to content

Recommended Posts

I am creating a multilanguage site and need some feedback from you all.  What I started creating is a site that uses the same page for each language but calls it's respective language file (ie. [b]en.php[/b]).  Depending on what language is selected (www.site.com/page.php?lang=en) the respective language file will be called by [b]include('/en.php');[/b]  Is this a good way to handle multiple languages?  I want to stay away from databases and this was my solution.  My concern is that I don't know how search engines like Google or Yahoo handle searching pages like this.  I want all of my languages to be included in the search but does Google search [b]www.site.com/index.php?lang=en[/b] and [b]www.site.com/index.php?lang=spanish[/b] separately?  I want to be able to search my Spanish terms and go to the right page with the right $lang var set.  Is this what happens?  Thanks for the response!
Link to comment
https://forums.phpfreaks.com/topic/15698-multi-language-site-php-only/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.