[Resolved] Change code in Permalink from en-usa to en
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to change the permalink structure of your English website from https://icryocanada.com/en-usa/ to https://icryocanada.com/en/. After attempting to delete the old English version and import XLIFF files, you encountered a WordPress fatal error when trying to access the 'translation' page. Solution: Unfortunately, once a language has been added to your site, its language code cannot be changed. For more details, please refer to this forum post.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum at WPML Support Forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to change the permalink structure of my English website from hidden link to hidden link. My website is in English and French, and it is based in Canada. I attempted to delete the old English version and import XLIFF files, but encountered issues.
Symptoms:
When I delete the English language, I get a WordPress fatal error when trying to access the 'translation' page.
Questions:
Can you help me change the permalink from /en-usa/ to /en/ step by step?
How can I resolve the WordPress fatal error when accessing the translation page after deleting the English language?
I tried to follow the process but I get some issues:
- Some pages are now 404
- The menu is all messed up
I figured out how to duplicate translations from pages that were created in "EN-US"
But some pages were then created in french and then translated in the old "EN-US" version and I cant figure out how to duplicate these pages to the new "EN-CA" version - They turn out 404.
Also, how can I duplicate the old "EN-US" menu and "translate it" to "EN-CA"?