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 Lauren 1 year ago.

Assigned support staff: Lauren.

Author Posts
October 2, 2018 at 3:05 pm #2781995

saehoonK

Hi,

I got the following solution from here: https://wpml.org/forums/topic/too-many-redirects-error-to-setup-language-url-format/

<?php
header( 'Location: <em><u>hidden link</u></em>' ) ;
?>

This is 302 redirect.

How to set 301 redirect instead of the 302 redirect?

Do i just create 301 redirect from .htaccess and unclick "Use directory for default language" at the admin?

Thanks.

October 4, 2018 at 6:01 pm #2788521

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thank you for contacting WPML support. I'll be happy to help you with this.

Yes, I believe that solution will work for you. If it doesn't, let me know and I'll be happy to continue troubleshooting.