Background of the issue:
I am trying to fix the 404 translated product pages and possibly other translated pages. The issue can be seen at the following link: hidden link
Symptoms:
I expected to see a fully translated product page, but instead, I got a 404 error. Some of the translated pages were ranking well organically before the WordPress/WPML conflict.
Questions:
How can I resolve the 404 error on translated pages?
What might be causing the WordPress/WPML conflict leading to 404 errors?
Before this thread is assigned to my colleague, I’d like to provide some initial guidance and possible solutions.
I understand the issue you're having. A 404 error on the translated page may appear due to the following reasons:
- Corrupted permalink structure
- Page/post is saved in draft
- The same slug is used more than once in one language.
Would you please do the following steps and check if that helps?
- Please ensure that the slug you've used for the posts/pages has not been used for any other post/page in the same language/other language. As WordPress doesn't support identical slugs, it is required to use a unique slug for each post, page, and post type.
- Please go to "Settings > Permalinks" from your WordPress Dashboard
- Resave the structure without making any changes
- Now, switch to secondary language using the language switcher on topbar of the WordPress Dashboard
- Locate the page/post that shows a 404 error.
- Click on "Quick Edit" and make sure that the 'Status' is set to 'Published'.
- Clear the caches from the site and browser then check again.
Please let us know if the steps above help in solving the issue or if you need further assistance in this matter. We will be happy to help.