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 4 replies, has 3 voices.

Last updated by Subash Chandra Poudel 1 year, 9 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
September 4, 2023 at 1:06 pm #14337069

lorraineM-2

Hello
I am hoping this is quite simple but I can't find the right answer.

I am tidying up redirects on my site

hidden link

I have some links where the www is missing from the link url. There is a redirect set up to catch this but I would like to change it at the source.

I have done this for the original lanaguage page (english)

eg

hidden link

--> the three icons / buttons at the bottom. I have changed these urls to include the www.

In the french language page, the url is still missing the www.

I checked string translations and the correct link with the www appears there.

Can you advise how I should fix these? It's multiple pages

Thank you

September 5, 2023 at 3:04 pm #14345759

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello!

there are many ways a link is created so i can only speak for ours. our way of using links is not that we hardcode it anywhere in the database. instead we build them dynamically using the URL of your site (found in settings > general) + WordPress standards to build them up and a lot if not most of the plugins and themes do this as well.

However, if you recently changed a site from hidden link to hidden link then it's likely there could be something in the database, specifically in the wp_options table that still contains the old url.

You can fix this by using a plugin like this one to search and replace the occurrences: https://wordpress.org/plugins/better-search-replace/

However, it shouldn't be a problem if you use www or not, and if there is then it means that the DNS is probably missing something (usually a CNAME entry) but that's something that maybe your hosting or the support of your domain can advice or help you with.

Regards.

September 5, 2023 at 3:25 pm #14345883

lorraineM-2

Hello

Thanks for your reply. The site has always been with the www so no recent change and I want to clean them for Seo purposes. Some links have the www others don't, not sure why.

The links were created with WPML.

What I am not clear on, is if I change the link in the original language, is add the www, I thought the other languages would change.

Maybe this isnt the case, but then I am not sure where I should correctly change them. Some appear in the translation editor but not all. I could edit the language pages directly, but then wouldn't they be out of sync?

I will check the plugins too, although I want to make sure I am doing it correctly and also prefer not to add more plugins to the site.

September 6, 2023 at 5:23 pm #14354343

lorraineM-2

Hi again

I tried the plugin you suggested but it doesn't detect the URLs in any of the db tables.

I realise that I can't change them in the language page as only the slug can be changed there.

So I am back to my original question 🙂

Where so I change these if they are not in the translation editor?

Many thanks

September 7, 2023 at 5:44 pm #14362107

Subash Chandra Poudel

Hi there,

When you edit the translation for the pages or contents, can you please search for "http" at the top search bar and see if you can then find those links to translate or fix properly as you require?

More details at: https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/

Regards,
Subash