Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to set up redirects for different language domains using the Redirection plugin, but the original URL is set relatively, causing the same redirect rule to apply across different domains, which is not desired.
Solution:
To set up domain-specific redirects using the Redirection plugin, follow these steps:
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:

https://www.jetstone.nl/contact/

- 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:

https://www.jetstone.be/gebruiksinformatie/

- Save the redirect.
If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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 2 replies, has 0 voices.

Last updated by Bruno Kos 6 months, 2 weeks 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
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+02: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
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+02: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
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+02: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?