NitroPack can optimize sites that use the WPML plugin if their URL structure is set up correctly.
With WPML, each language can be set up as a:
- Query parameter, e.g., https://example.com/?=en, https://example.com/?=de. This case is supported by NitroPack.
- Subfolder, e.g., https://example.com/en/, https://example.com/de/. This case is also supported by NitroPack.
- Different domain or subdomain - e.g., https://example.en, https://example.de, https://en.example.com, https://de.example.com. These cases are not supported by NitroPack.
You can select how your site’s URL structure is organized from the “Language URL format” section in the WPML plugin:
Important: In order for the query parameters or subfolders to work, all links must be added under the same sitemap, so that NitroPack can optimize them.