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
- 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 8:00 – 14:00 -
- 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 15:00 – 17:00 -

Supporter timezone: Europe/Madrid (GMT+02:00)

This topic contains 7 replies, has 2 voices.

Last updated by Nigel 1 year, 4 months ago.

Assisted by: Nigel.

Author Posts
February 7, 2024 at 10:01 am #15275889

daveV-16

Tell us what you are trying to do?
Hi, I'm trying to translate my site using different domains.
I was able to validate the new domain, and if I go to the new domain homepage, which is translated, so visible in the new language pages part, I see my translated page.
I also translated one of my other pages, but if I go to that page via new domain I get a page not found.

If I go to new domain page which is not translated yet, I'm redirected to that page in the old domain.

I've already followed the steps in other topics, such as resave permalinks, check for published page, update plugin.

What is the link to your site?

hidden link (old domain)
hidden link (new domain for translation)

Page that I have translated:
hidden link
hidden link (page not found error)

Example of a site that is redirected to the old domain page
hidden link
Is redirected to: hidden link

February 7, 2024 at 10:35 am #15276042

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Hi there

Let me see if I can help.

Before going much further, it appears you have problems on your site.

When I visit the "old domain" the page loads but there are many JS errors in the console, so—for example—the menus don't work. (I was looking for a language switcher to see where it pointed.)

When I visit the "new domain" the page fails to load at all.

Might I suggest that you start by deactivating WPML and make sure that the site displays as expected at both URLs without errors, then we can look at re-activating WPML and ensuring it continues to work.

(To clarify, with WPML inactive, you should be able to visit either the old domain or the new domain and they should both load the same WordPress site, of which there is only one installation.)

February 7, 2024 at 12:14 pm #15276538

daveV-16

Hi Nigel,
Thanks for helping me.
I've deactivated WPML. Right now, if I'm going to uplevel-marketing.com I'm redirected to uplevelmarketing.nl. However, if I'm going to uplevel-marketing.com/sea I'm staying on uplevel-marketing.com/sea, while seeing the correct WordPress site.

I'm seeing new errors when I'm on uplevel-marketing.com/sea, no idea why they are there...

What I've done to add the new domain:
- I've added in the hosting platform (Cloudways) 2 new domains (alias: uplevel-marketing.com and hidden link) to the existing primary domain (uplevelmarketing.nl)
- I've added 2 new ssl certificates (uplevel-marketing.com and hidden link)

Is this correct? That only homepage is redirected to old domain, but other pages are not?

February 7, 2024 at 12:29 pm #15276604

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

If a redirect occurs then this isn't setup correctly, and you'll need to discuss with your host what is required, as it is different with every host.

You have a primary domain uplevelmarketing.nl.

You should have a domain alias (or "parked domain", the terminology may vary between hosts) at uplevel-marketing.com.

The key point is that this is *not* a redirect.

With a redirect, if a user entered uplevel-marketing.com into their browser, the URL shown in the browser would update to uplevelmarketing.nl and the site would be displayed.

In the case of a domain alias, the URL is unchanged, but the same site is displayed as if the user had entered the primary domain.

Pages of the site would work the same way as the home page.

This is all independent of WPML.

Only once this is set up correctly can WPML work properly with languages in separate domains.

Hopefully the description I've given you is enough for your host to clarify how to set this up.

February 7, 2024 at 12:44 pm #15276666

daveV-16

Hi Nigel,

Thanks for your response, the host (cloudways) is mentioning that because it being a single WordPress site, adding a new domain (alias) will always redirect to the primary domain. And in order to not redirect it should be a multi-site. But if I make it a multisite, I have different dashboards for the domain so I don't think I need that right? Or do I need a Multisite?

February 7, 2024 at 12:55 pm #15276673

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

That's not correct, no, you should not use a multisite.

I said this was independent of WPML, but it's also independent of WordPress.

If you made a simple index.html file with any-old text in a p tag and placed that at the root of your public server for the primary domain, when you visit the secondary url you should see the content of that index.html file without the url changing.

When that works, everything else will fall into place.

February 7, 2024 at 12:59 pm #15276678

daveV-16

Hi, I sent this to Cloudways support, and this was their response:

Thank you for sharing their response, could you please ask them to ask about the process of setting up the site with the single domain if there is any setting that needs to be done on the wp-admin in the plugin configuration?

So can you share this with me please? Because I have no idea how to fix this and be able to use this plugin..

February 7, 2024 at 1:25 pm #15276756

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

There is nothing special that needs setting up within the plugin or within WordPress.

As I said, this should work without WordPress.

Create a text file with the following content and save it as index.html:

<p>Hello from your server</p>

Use FTP to upload that to the root public folder of your site (where you currently have your WordPress installation).

Now when you visit hidden link it will load this HTML file.

Your host should be able to set up a domain alias for hidden link to point to the primary domain so that if you now visit hidden link in your browser you will see the same HTML file, and the browser will still show the url as hidden link (no redirect has taken place).

I'm sorry that this is proving difficult for you, but it shouldn't be difficult for your host company at all.

We have a documentation page about this, but I'm not sure it would help to share it with your host. The example I just described makes it clear that this is about domain configuration and has nothing to do with WordPress or WPML.

If they can make sure that domain alias works as intended then I can help ensure everything related to setting up the languages works correctly.

The topic ‘[Closed] Page not found problem’ is closed to new replies.