Subdomains and Subdirectories

The Transifex Live multilingual plugin lets you pick from two different URL structures for your multilingual site: subdomains and subdirectories. These help make your site more SEO-friendly, and in turn, help you rank better in search engines.

Subdirectories

With subdirectories, each translated version of your site lives in its own subdirectory. Your French site, for example, would be accessed from www.example.com/fr/.

Through the plugin, you can create subdirectories for each language that’s been published through Transifex Live (you can name these subdirectories however you like, though we recommend using the language code).

This is what we’ve done for this site.

If you use the language picker at the bottom and switch to another language, not only will the content change, but all the URLs will have the language code (e.g., /pt-br/) after the domain name reflecting the selected language.

All links generated by WordPress such as Categories or Recent Posts in the right side bar, for example, will obey the new URL structure automatically. This is a functionality of the plugin that allows your translations to have their own pages, allowing search engines to index them.

Since the plugin uses Transifex Live, you don’t have to create separate pages or posts for each language or put the translations inside of WordPress. It’s all served directly from Transifex Live thought our CDN infrastructure.

Subdomains

As an alternative to creating subdirectories for each language, you could use subdomains. So instead of www.example.com/fr/, your French site would live at fr.example.com.

While you’ll have to set up all these subdomains outside of Transifex, the plugin can help you map the subdomains you’ve set up with the languages published from Transifex Live.

So when someone visits fr.example.com, they’ll see the French version of your site.

Get the plugin

If you’ve read all the way here, you should probably get the plugin. 🙂

win

English