{"id":2254,"date":"2020-11-25T14:55:42","date_gmt":"2020-11-25T12:55:42","guid":{"rendered":"https:\/\/tulipeo-tulipemedia.pf28.wpserveur.net\/?p=2254"},"modified":"2025-05-15T17:53:02","modified_gmt":"2025-05-15T15:53:02","slug":"wpml-domain-by-language","status":"publish","type":"post","link":"https:\/\/tulipemedia.com\/en\/wpml-domaine-par-langue\/","title":{"rendered":"WordPress: how to have a domain name by language with WPML"},"content":{"rendered":"<p>Do you want to have a multilingual site with one domain name per language? It&#039;s very simple with WPML.<\/p>\n<p>Rather than having mydomain.com\/fr, it is possible to have mydomain.fr and mydomain.com.<\/p>\n<p>Here&#039;s how to do it.<\/p>\n<h2>Configure your DNS<\/h2>\n<p>On the DNS side, on your registrar, you must point the domain name to the IP of the server which contains the base site (let&#039;s say mydomain.com).<\/p>\n<p>So you go to the DNS of mondomaine.fr, and you point them to exactly the same IP as the one used for mondomaine.com.<\/p>\n<p>So your two domain names point to the same place.<\/p>\n<h2>Add the new domain to the installation on the host side<\/h2>\n<p>Then, in your customer area with the host, go to the settings of the installation concerned, and add the domain mondomaine.fr as well as www.mondomaine.fr.<\/p>\n<p>Redirect mondomaine.fr to www, or vice versa.<\/p>\n<h2>Add an SSL certificate<\/h2>\n<p>Modern hosting providers offer them for free. At WP Engine for example, click on SSL then add SSL certificates for the two domains newly added to the installation (mondomaine.fr and www.mondomaine.fr).<\/p>\n<h2>Configure WPML<\/h2>\n<p>Finally, in WPML &gt; Languages, choose the option \u201cA different domain per language\u201d and enter \u201cmondomaine.fr\u201d for the French version for example, then click on Save.<\/p>\n<p>Check everything in private browsing after a certain time, while the DNS is propagated. That&#039;s all !<\/p>","protected":false},"excerpt":{"rendered":"<p>Vous souhaitez disposer d&rsquo;un site multilingue avec un nom de domaine par langue ? C&rsquo;est tr\u00e8s simple avec WPML. Plut\u00f4t que d&rsquo;avoir mondomaine.com\/fr, il est possible d&rsquo;avoir mondomaine.fr et mondomaine.com. Voici comment faire. Param\u00e9trer vos DNS C\u00f4t\u00e9 DNS, sur votre registrar, il faut pointer le nom de domaine vers l&rsquo;IP du serveur qui contient le [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":2124,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[159],"class_list":["post-2254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-wordpress-multilingue"],"_links":{"self":[{"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/posts\/2254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/comments?post=2254"}],"version-history":[{"count":1,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/posts\/2254\/revisions"}],"predecessor-version":[{"id":5304,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/posts\/2254\/revisions\/5304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/media\/2124"}],"wp:attachment":[{"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/media?parent=2254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/categories?post=2254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/tags?post=2254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}