{"id":85,"date":"2014-05-11T21:00:49","date_gmt":"2014-05-11T19:00:49","guid":{"rendered":"http:\/\/dev.bratched.fr\/en\/?p=85"},"modified":"2014-05-11T21:00:49","modified_gmt":"2014-05-11T19:00:49","slug":"creating-multilingual-websites-in-wordpress","status":"publish","type":"post","link":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/","title":{"rendered":"Creating multilingual websites in WordPress"},"content":{"rendered":"<p>The purpose of this post is to show a tutorial about creating a multilingual website in WordPress using the multisite feature.<\/p>\n<p>Advantages of the proposed solution :<\/p>\n<ul>\n<li>Lots of flexibility for content translation and presentation of the articles in different languages<\/li>\n<li>Different themes based on country<\/li>\n<li>Search Engine Optimization<\/li>\n<\/ul>\n<h1>Step 1 : Creating multisite WordPress<\/h1>\n<p>Add the following line in <strong>wp-config.php.<\/strong><\/p>\n<pre class=\"lang:default decode:true\">define ('WP_ALLOW_MULTISITE', true);<\/pre>\n<p>This will activate a new option in the Dashboard: Tools -&gt; Network Setup.<\/p>\n<p>All that&#8217;s left is to follow the instructions.<\/p>\n<p>Choose the default folder options in order to have urls of the following pattern www.monsite.com\/fr\/mapage.html<\/p>\n<p>2 actions are necessary :<\/p>\n<ul>\n<li>Copy\/Paste some code inside wp-config.php<\/li>\n<li>Copy\/Paste some code inside .htaccess<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>Note : make sure that the wp-config.php file has been updated between the first modification and the activation of the multisite.<\/p>\n<h1>Step 2 : Add sub-sites<\/h1>\n<p>Every sub-site will correspond to a specific language.<\/p>\n<p>Create as many sub-site as languages you need to support.<\/p>\n<p>Every code of the sub-site must correspond to 2 letters of the supported language.<\/p>\n<p><a href=\"http:\/\/dev.bratched.fr\/fr\/wp-content\/uploads\/sites\/2\/2014\/05\/Capture.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-588\" src=\"http:\/\/dev.bratched.fr\/fr\/wp-content\/uploads\/sites\/2\/2014\/05\/Capture-300x219.png\" alt=\"Capture\" width=\"370\" height=\"270\" \/><\/a><\/p>\n<p>Configure every sub-site with the corresponding language.<\/p>\n<h1>Step 3 : Add the plugin <strong>Multisite Language Switcher<\/strong><\/h1>\n<p>Go to the network administration and add the plugin MultiSite Language Switcher.<\/p>\n<p>This extension allows to relate categories, pages, articles, &#8230; with different languages.<\/p>\n<p>Activate this extension in every sub-site corresponding to a specific language.<\/p>\n<p>A widget allows to show the user a selection of languages on each page.<\/p>\n<p>To configure this widget go to Tools -&gt; Multi language Switcher<\/p>\n<h1>Step 4 : redirect based on the browser&#8217;s preferred language<\/h1>\n<p>This step could be achieved with the theme oncleben31-Multisite-Language-Switcher-Theme.<\/p>\n<p>Configure this theme on the main site so that the redirect to the sub-site is made automatically.<\/p>\n<p>Add and activate the theme from the network administration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The purpose of this post is to show a tutorial about creating a multilingual website in WordPress using the multisite feature. Advantages of the proposed solution : Lots of flexibility for content translation and presentation of the articles in different languages Different themes based on country Search Engine Optimization Step 1 : Creating multisite WordPress [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[270],"tags":[300,301,318],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Bratched\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Bratched.com | Blog speaking .Net C# Javascript, Wordpress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Creating multilingual websites in WordPress | Bratched.com\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2014-05-11T19:00:49+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2014-05-11T19:00:49+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Creating multilingual websites in WordPress | Bratched.com\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#article\",\"name\":\"Creating multilingual websites in WordPress | Bratched.com\",\"headline\":\"Creating multilingual websites in WordPress\",\"author\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/author\\\/adminced\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/dev.bratched.fr\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2014\\\/05\\\/Capture-300x219.png\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#articleImage\"},\"datePublished\":\"2014-05-11T21:00:49+02:00\",\"dateModified\":\"2014-05-11T21:00:49+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#webpage\"},\"articleSection\":\"Wordpress, multi-site, multilangue, traduction\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bratched.com\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/category\\\/wordpress\\\/#listItem\",\"name\":\"Wordpress\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/category\\\/wordpress\\\/#listItem\",\"position\":2,\"name\":\"Wordpress\",\"item\":\"https:\\\/\\\/bratched.com\\\/en\\\/category\\\/wordpress\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#listItem\",\"name\":\"Creating multilingual websites in WordPress\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#listItem\",\"position\":3,\"name\":\"Creating multilingual websites in WordPress\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/category\\\/wordpress\\\/#listItem\",\"name\":\"Wordpress\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/#organization\",\"name\":\"Bratched.com\",\"description\":\"Blog speaking .Net C# Javascript, Wordpress\",\"url\":\"https:\\\/\\\/bratched.com\\\/en\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/author\\\/adminced\\\/#author\",\"url\":\"https:\\\/\\\/bratched.com\\\/en\\\/author\\\/adminced\\\/\",\"name\":\"Bratched\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/05352dcd40ece2c42e5ae2dd683b460b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Bratched\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#webpage\",\"url\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/\",\"name\":\"Creating multilingual websites in WordPress | Bratched.com\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/2014\\\/05\\\/11\\\/creating-multilingual-websites-in-wordpress\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/author\\\/adminced\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/author\\\/adminced\\\/#author\"},\"datePublished\":\"2014-05-11T21:00:49+02:00\",\"dateModified\":\"2014-05-11T21:00:49+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/bratched.com\\\/en\\\/\",\"name\":\"Bratched.com\",\"description\":\"Blog speaking .Net C# Javascript, Wordpress\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/bratched.com\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Creating multilingual websites in WordPress | Bratched.com","description":"","canonical_url":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#article","name":"Creating multilingual websites in WordPress | Bratched.com","headline":"Creating multilingual websites in WordPress","author":{"@id":"https:\/\/bratched.com\/en\/author\/adminced\/#author"},"publisher":{"@id":"https:\/\/bratched.com\/en\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/dev.bratched.fr\/fr\/wp-content\/uploads\/sites\/2\/2014\/05\/Capture-300x219.png","@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#articleImage"},"datePublished":"2014-05-11T21:00:49+02:00","dateModified":"2014-05-11T21:00:49+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#webpage"},"isPartOf":{"@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#webpage"},"articleSection":"Wordpress, multi-site, multilangue, traduction"},{"@type":"BreadcrumbList","@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/bratched.com\/en\/#listItem","position":1,"name":"Home","item":"https:\/\/bratched.com\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bratched.com\/en\/category\/wordpress\/#listItem","name":"Wordpress"}},{"@type":"ListItem","@id":"https:\/\/bratched.com\/en\/category\/wordpress\/#listItem","position":2,"name":"Wordpress","item":"https:\/\/bratched.com\/en\/category\/wordpress\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#listItem","name":"Creating multilingual websites in WordPress"},"previousItem":{"@type":"ListItem","@id":"https:\/\/bratched.com\/en\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#listItem","position":3,"name":"Creating multilingual websites in WordPress","previousItem":{"@type":"ListItem","@id":"https:\/\/bratched.com\/en\/category\/wordpress\/#listItem","name":"Wordpress"}}]},{"@type":"Organization","@id":"https:\/\/bratched.com\/en\/#organization","name":"Bratched.com","description":"Blog speaking .Net C# Javascript, Wordpress","url":"https:\/\/bratched.com\/en\/"},{"@type":"Person","@id":"https:\/\/bratched.com\/en\/author\/adminced\/#author","url":"https:\/\/bratched.com\/en\/author\/adminced\/","name":"Bratched","image":{"@type":"ImageObject","@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/05352dcd40ece2c42e5ae2dd683b460b?s=96&d=mm&r=g","width":96,"height":96,"caption":"Bratched"}},{"@type":"WebPage","@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#webpage","url":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/","name":"Creating multilingual websites in WordPress | Bratched.com","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/bratched.com\/en\/#website"},"breadcrumb":{"@id":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/#breadcrumblist"},"author":{"@id":"https:\/\/bratched.com\/en\/author\/adminced\/#author"},"creator":{"@id":"https:\/\/bratched.com\/en\/author\/adminced\/#author"},"datePublished":"2014-05-11T21:00:49+02:00","dateModified":"2014-05-11T21:00:49+02:00"},{"@type":"WebSite","@id":"https:\/\/bratched.com\/en\/#website","url":"https:\/\/bratched.com\/en\/","name":"Bratched.com","description":"Blog speaking .Net C# Javascript, Wordpress","inLanguage":"en-US","publisher":{"@id":"https:\/\/bratched.com\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"Bratched.com | Blog speaking .Net C# Javascript, Wordpress","og:type":"article","og:title":"Creating multilingual websites in WordPress | Bratched.com","og:url":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/","article:published_time":"2014-05-11T19:00:49+00:00","article:modified_time":"2014-05-11T19:00:49+00:00","twitter:card":"summary","twitter:title":"Creating multilingual websites in WordPress | Bratched.com"},"aioseo_meta_data":{"post_id":"85","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 02:36:46","updated":"2025-06-04 02:52:38","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/bratched.com\/en\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/bratched.com\/en\/category\/wordpress\/\" title=\"Wordpress\">Wordpress<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreating multilingual websites in WordPress\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/bratched.com\/en\/"},{"label":"Wordpress","link":"https:\/\/bratched.com\/en\/category\/wordpress\/"},{"label":"Creating multilingual websites in WordPress","link":"https:\/\/bratched.com\/en\/2014\/05\/11\/creating-multilingual-websites-in-wordpress\/"}],"_links":{"self":[{"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/posts\/85"}],"collection":[{"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bratched.com\/en\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}