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.
Tagged: Exception
This topic contains 3 replies, has 2 voices.
Last updated by stefanC-12 1 year, 11 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
March 27, 2023 at 9:42 am #13336371 | |
stefanC-12 |
I've got some translated pages that suddenly return a 404 error. They worked fine until recently and now they return 404. Those pages are translated (100%), the menu is synced. and they show up in the front-end searchresults. When you enter the url they return 404 page not found. This page is 100% translated and works. The translation returns 404. I've already refreshed the permalink structure, cleared the cache, tried with another browser and updated the original language and the translation. I've also synced the menu again with no success. Other pages (even subpages with a /parent/parent/pageslug structure) work fine. I can't find the problem - any help is appreciated. |
March 27, 2023 at 9:59 am #13336735 | |
stefanC-12 |
I can further narrow down the issue. Those pages seem to work when called without https:// but not with https:// I've checked the database with "better search replace" and there are no links with http:// anywhere. All the Links created by WPML are https:// |
March 27, 2023 at 5:55 pm #13341887 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. I just checked the mentioned URLs and look like these are working fine: - hidden link However, notice that there's no "ueber-uns" or "about-us" in the URL. When I tried to visit the URL exactly as you mentioned, these were redirected to the said URLs. Perhaps: - either there's a redirection in place (a plugin or on server level or using .htaccess?) In any case, can you try the followings? IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised. - Update WPML String Translation to the latest version also, since you 've already updated WPML to the latest. Please let me know and I'll try my best to further assist you on the matter. Regards. |
March 28, 2023 at 8:16 am #13346621 | |
stefanC-12 |
Hi, I've found a solution that worked for now. I removed the hierarchy from the pages and created new urls for each of them. The strange thing is that /about-us/ just didn't work even when I created all pages from scratch. Other pages with hierarchy work just fine. I have no redirection plugin installed but rewrite rules in my .htaccess that force https. That works on every other page except children of the /about-us/ page … I even deleted and recreated the about-us page and it still wasn't working. My best guess is that there's some server-caching problem?! but the host hasn't yet replied to me, so I can't check. My issue is resolved now. Thank you! |