Skip to content

Instantly share code, notes, and snippets.

@mica-sirup
Last active May 3, 2022 08:06
Show Gist options
  • Select an option

  • Save mica-sirup/2e1452afe31eda15097f3a262979cc46 to your computer and use it in GitHub Desktop.

Select an option

Save mica-sirup/2e1452afe31eda15097f3a262979cc46 to your computer and use it in GitHub Desktop.
WPML différent domaine pour chaque langue

WPML différent domaine pour chaque langue

  1. Dans les zone DNS enlever les 3w sur record dns A / AAAA sans les www
  2. Dans les zone DNS Ajouter un CNAME www qui pointe vers le domaine le domaine principal
  3. Dans Dashboard WP -> WPML Valider le nom de domaine
  4. editer le .htaccess de la racine pour allow cross origin (css/js/font)
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin https://domaine2.com  
    Header set Access-Control-Allow-Credentials true
</IfModule>
  1. PATIENCE

MERCI @schwdim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment