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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 10 months ago.

Assisted by: Long Nguyen.

Author Posts
August 9, 2023 at 4:06 pm #14177315

jonasM-28

Hi,

we have set our page to use subdirectories for languages (for now just /de/) and redirected the homepage hidden link with the root page redirect template to hidden link. This is working fine.

Now here's the problem:
All other existing pages of our website, like hidden link are not automatically redirected to the /de/ subdirectory.

So now we have two pages with the same content:
hidden link -> which should be redirected and
hidden link

I'm quite sure that this was working a few weeks ago. Any ideas on how to fix this without setting manual redirects for every page?

Thank you very much.

August 11, 2023 at 6:47 am #14185993

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Jonas,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Now I see the page is redirected to hidden link correctly. Please check this screen record hidden link

According to the Debug info, I see the default language on your site is German and the option "Use directory for default language" is enabled in WPML > Languages > Language URL format. So no need to set up a direct for pages and posts on your site. The permalink of them should be hidden link

You can test this feature on a clean installation of WordPress. With this link, you will be logged in directly to a sandbox site hidden link

Look forward to your reply.
Thanks

August 11, 2023 at 7:29 am #14186237

jonasM-28

Hi Long,

thanks for your reply and the sandbox page. On our website I created the redirects manually in the meantime. That's why it is working there. But the problem still exists.

I did the same setup on the sandbox site and I get the same issue:
I created a test page: hidden link -> Permalink is fine
But hidden link is not redirected to hidden link

Can you have a look at that?

Thanks in advance.

August 11, 2023 at 7:50 am #14186415

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I see that behavior and I think it is normal. Posts without language information are accessible from anywhere. Actually, WPML does not generate a link without language on your site, you are typing the page without language directly in the browser.

The canonical and hreflang tags also point to the URL hidden link
please check this screenshot hidden link

That means the search engine or other plugins can see the URL hidden link only.

I hope that makes sense.

The topic ‘[Closed] Redirect of subpages to default language folder not working’ is closed to new replies.