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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

This topic contains 2 replies, has 0 voices.

Last updated by Bruno Kos 3 days, 19 hours ago.

Assisted by: Bruno Kos.

Author Posts
November 21, 2024 at 7:29 am #16427515

daanV-5

Background of the issue:
I am trying to set up redirects for different language domains using the Redirection plugin as recommended on your website. I want to redirect URLs specifically for each domain, such as redirecting hidden link to hidden link and hidden link to hidden link.

Symptoms:
The original URL is set relatively, causing the same redirect rule to apply across different domains, which is not desired.

Questions:
How can I set redirects for specific domains using the Redirection plugin?
Is it possible to configure the Redirection plugin to handle domain-specific redirects?

November 21, 2024 at 8:07 am #16427793

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Thank you for contacting WPML support!

To confirm, this is not about https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/, but you only want to redirect some particular url from one to another?

Regards,
Bruno Kos

November 21, 2024 at 8:42 am #16427889

daanV-5

Hi Bruno,

Thanks for your fast reply!

I do indeed want you to be able to set the path of a URL per language:

So in Dutch:
jetstone.nl/x goes to jetstone.nl/y

And in Belgian:
jetstone.be/x goes to jetstone.be/z

The path behind the domain name is the same for both languages, but the target URL is different for both languages.

November 21, 2024 at 2:05 pm #16429527

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Would you be willing to provide me with WordPress credentials so I could investigate the issue directly?

And do this also:
- set this redirect in Redirection plugin regardless on whether these work or not
- let me know which redirect rules exactly these are

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

November 26, 2024 at 6:43 am #16442663

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I think this may be more of a question of Redirection plugin options.

However, according to hidden link, it could be possible using URL and server option, something like this:

1. **Set Up the Redirect for `www.jetstone.nl`**
- **Source URL:** `/some-test-redirect-to-contact`
- This is the relative path you want to redirect.
- **Compare with:** Select **"URL and server"** from the dropdown.
- **Server Value:** Enter `www.jetstone.nl`.
- This ensures the redirect will only work for this specific domain.
- **Target URL:** `hidden link`
- **Save** the redirect.

2. **Set Up the Redirect for `www.jetstone.be`**
- Add a second redirect:
- **Source URL:** `/some-test-redirect-to-contact`
- **Compare with:** Select **"URL and server"**.
- **Server Value:** Enter `www.jetstone.be`.
- **Target URL:** `hidden link`
- **Save** the redirect.

Can you try this, does it work?