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
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 8 replies, has 2 voices.

Last updated by Christopher Amirian 9 months, 1 week ago.

Assisted by: Christopher Amirian.

Author Posts
September 3, 2024 at 11:19 am #16135259

ppuU

Background of the issue:
I am trying to redirect all hidden link URLs to clearfox.de, but it only works for the homepage. The issue can be seen on this page: hidden link

Symptoms:
I expected to see hidden link, but instead, I got a 404 error.

Questions:
Why is the redirect from hidden link to clearfox.de only working for the homepage?
How can I fix the 404 error for other pages when redirecting from hidden link to clearfox.de?

September 3, 2024 at 11:43 am #16135358

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

There was no answer in the chat.

Please contact the domain registrar or hosting service provider and ask them to set the www and non www in a way that they point to the site and not redirect.

You can use this website:
hidden link
The non www and www both should result in HTTP code 200 and not 301

Please get back to us with the result of the setting.

Thanks.

September 3, 2024 at 12:36 pm #16135650

ppuU

Hi, is that not because it is redirecting from http to https?

September 3, 2024 at 2:35 pm #16136261

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

There should be no redirect as mentioned. It should point to the proper place instead of redirecting it.

The best way is to contact your hosting service

September 4, 2024 at 10:48 am #16139820

ppuU

Hi there, I got this response from them, if you think it sounds legitimate I will implement it.

"To stop the redirect, you need to insert the following rule to the top of the .htaccess file.

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule (.*) [hidden link{REQUEST_URI}]hidden link{REQUEST_URI} [L,NE,R=301]

The Setting "Force SSL" has to be disabled for the specific domain in the master KAS-Account."

September 4, 2024 at 3:28 pm #16141715

ppuU

Hello?

September 7, 2024 at 2:50 pm #16151422

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Sorry for the late reply. I am not sure about the method mentioned there as I am not a network specialist.

it seems to be a legitimate Apache code but you need to test that and see the result.

Thanks.

September 18, 2024 at 10:41 am #16192447

ppuU

Hi there,

Can you check this again? The .com site is now resulting in HTTP code 200. Is this correct?

However, the .de domain does not. It redirects to HTTPS.
Is this still a problem?

September 18, 2024 at 12:52 pm #16193167

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

You can do a quick test by switching to "Different languages in directories" from WordPress Dashboard -> WPML -> Languages, and after checking the other domains if they point to the homepage (www and non-www). You should see the main domain homepage in all the cases.

If not, then that indicates there is an issue on the domain level.

Thanks.

The topic ‘[Closed] www not redirecting to non www on second language domain’ is closed to new replies.