I just got to redesign an old website (from a custom coded platform to Wordpress). The old and new URLs now look like these:
Old url: www.somedomain.com/en/file-path
New url: www.somedomain.com/file-path/
This structure is repeated site-wide.
Is there a single instruction I can add in the .htaccess file (or some other way, maybe using a plugin) that takes care of all the 301 redirects using the above rule?
I don't want to have to manually write redirects for 100s of URLs. Am sure there is a simpler way.