This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to redirect URLs from an old domain where Spanish was the main language to a new domain where English is now the main language. Specifically, they want to redirect URLs from
newdomain/en/portfolio/****
to
newdomain/portfolio/****
using .htaccess.
Solution:
We recommend using a 301 redirect in your .htaccess file to manage the redirection from the old URL structure to the new one. Here are some guides that can help you set up the redirects:
- Guide on 301 Redirects
- ServerFault discussion on RewriteRule for subfolders
- BeginnersBook on redirecting a subdirectory to the root
If you're not comfortable with custom coding, you might consider hiring a contractor from our list of recommended professionals at WPML Contractors. Alternatively, you could use an AI tool like ChatGPT to assist you.
If this solution doesn't look relevant to your situation, please feel free to open a new support ticket with us for further assistance.
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 1 year, 5 months ago.
Assisted by: Alejandro.