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 1 reply, has 2 voices.

Last updated by Bobby 1 year, 9 months ago.

Author Posts
August 22, 2023 at 1:32 pm #14271683

davidM-294

Hi there, I want my site to use the language directory for all languages including the default language, only one site without the language directory I want to be the homepage, ie. I want hidden link instead of hidden link
I also want to get rid of this message: Polylang used to redirect traffic from hidden link to hidden link but WPML isn't doing this. If you have incoming links to hidden link, you should redirect this traffic to your site's root. To do this, add the following line to your .htaccess file:
RedirectMatch 301 /cs/$ hidden link

homebage without directory.png
August 22, 2023 at 5:48 pm #14273163

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

While waiting for one of my colleagues to help you, please review the following:

Unfortunately when using the feature "Use directory for default language" it will apply to all pages. There is no option to skip a specific page such as the homepage for example.

Regarding the redirect warning coming from RankMath, you should be able to either Dismiss the nottice or add the code provided by them in the notice to the .htaccess file.

The topic ‘[Closed] Hide default language directory on the homepage only’ is closed to new replies.