跳到内容 跳到侧边栏

本主题包含 0 則回覆 ,有 0 声音 。

最后由 ayeletY-2 6 months, 2 weeks前 更新。

协助者:: Bruno Kos.

作者 帖子
2025 年 10 月 3 日 于 上午 8:20 #17453771

ayeletY-2

Background of the issue:
I'm using WPML with Hebrew as the default language and English as the secondary language, each on its own domain. Currently, when a visitor tries to access a page in English that doesn’t have a translation, WPML falls back to showing the Hebrew version. I want to force WPML to return a 404 page (in English) instead of falling back to Hebrew, whenever an untranslated page is requested in English.

Symptoms:
WPML falls back to showing the Hebrew version of a page when an English translation is not available.

Questions:
Is there a way to force WPML to return a 404 page in English for untranslated pages in the secondary language?