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.

This topic contains 6 replies, has 2 voices.

Last updated by luo 1 year, 5 months ago.

Assisted by: luo.

Author Posts
June 14, 2023 at 1:04 pm #13825383

igorG-13

Our client used 2 websites. A Dutch (main domain) version and a German version (alias domain). We have rebuild this using a single WordPress installation with WPML.
Now some of the old German content we would like to set some redirects for. How would we set redirects for the German side?

June 15, 2023 at 8:07 am #13830249

luo

Hello,

You can follow our document to setup different domain name for each language:
https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

June 15, 2023 at 8:41 am #13830413

igorG-13

Hi Iuo, the domains are already set-up and working. But now we want to set redirects from the old url to new for that alias domain:

Main site/language: uwbedpro.nl
Translated site: hidden link

We had: hidden link
We want: hidden link

How would we set that redirect?

June 15, 2023 at 8:52 am #13830465

luo

The URL you mentioned above is a WorPress page, you can translate the page slug into secondary languages:
https://wpml.org/documentation/getting-started-guide/translating-page-slugs/

June 16, 2023 at 7:52 am #13837177

igorG-13

Hi Iuo, the URL is translated, we just want to know how to set redirects...

Main site/language: hidden link
Translated site: hidden link

So how would we set redirects? In .htaccess? if so, how do we make redirects only affecting the hidden link ?

June 19, 2023 at 8:05 am #13848615

igorG-13

Per example;
Someone typing in their address bar: objektbetten.de will be redirected to uwbedpro.nl because the url should be hidden link.

How to set the redirect for objektbetten.de to hidden link by default?

June 20, 2023 at 8:26 am #13856721

luo

No, there isn't such kind of built-in feature within WPML plugins, It depends on your webserver, if you are using NGINX webserver, you can config it in NGINX settings:
hidden link

If you want to redirect some specific posts/pages, you can try other plugins, for example:
https://wpml.org/plugin-functionality/redirect/