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?
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.
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.