Problem: The client was experiencing issues with saving and publishing content on their multilingual site, specifically with the Swedish pages and a custom US language setup. The root of the problem was identified as incorrect handling of the root page and server-level redirect rules affecting WordPress REST API requests. Solution: We recommended the client to check with their hosting provider to adjust the redirect rules that were converting POST requests into GET requests, which prevented content from being saved. Additionally, we advised setting up a new root page correctly by deleting the existing 'Global' page and creating a new one through WPML > Languages > Create a root page. For detailed guidance on setting up the root page, visit this documentation.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
Problem: The client wants to change the default language folder from /en/ to /us/ on their WPML-configured website without duplicating pages. Additionally, they encounter a 401: Unauthorized error when attempting to set /us/ as the default folder. Solution: We recommend two approaches to address this issue: 1. Create a custom language: - Add a new custom language with the code /us/. - Duplicate your existing pages into this new language. - Set this new custom language as your default in WPML → Languages. 2. If no translations have been added yet, reconfigure WPML from scratch: - Fully reset WPML. - During the setup wizard, add the custom language with the /us/ code and set it as the default. - Once configured, all your pages will appear under the /us/ language. To reset WPML, follow these steps: - Go to WPML → Support and click the Troubleshooting link. - In the Reset section of the Troubleshooting page, select the 'I am about to reset all translation and language data' checkbox. Then, click the 'Reset and deactivate WPML' button. - For detailed instructions, visit WPML Reset Documentation. Before making any changes, please ensure to back up your database and site files.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.