Skip Navigation

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.

This topic contains 1 reply, has 0 voices.

Last updated by alexandreP-37 1 month, 1 week ago.

Author Posts
March 4, 2025 at 3:48 pm #16775030

alexandreP-37

Background of the issue:
We are migrating 80+ pages from using ACF to using Elementor, including their translations in 5 languages. We want to keep the URLs but make sure to serve the new Elementor page and not the old ACF page, but keep the ACF page until the end of the migration. To operate around that, we have an "ARCHIVED" empty page and a "STAGING" empty page. When we create the new Elementor page, we give it the same slug as the original, and add the STAGING page as its parent so that it is clear it is in development. When it is ready, we set the old page to have ARCHIVED as parent page, then remove the staging parent to the new page, so that it gets the correct URL.

Symptoms:
There are weird redirections happening and using wget, I found out that a x-header says WPML created the redirect.

Questions:
Is there a way to prevent this redirection from happening, with a bit of code or via an existing setting?

March 6, 2025 at 1:59 pm #16783867

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Have you already tried saving the WordPress Permalinks again to solve this issue?

If this does not solve the issue, please try to recreate this problem on the following test site and leave us a comment once you are done with this task:

hidden link

Please do not migrate your whole website to this test site. Simple create a couple of dummy pages for testing if this issue is replicable.

Best regards
Andreas

March 7, 2025 at 11:40 am #16788109

alexandreP-37

The suggested advise did not solve the issue.
Solved it by changing our migration approach: deleting the old page before changing the page's parent setting.