Multilingual WordPress with redirects and dynamic content

Multilingual WordPress with redirects and dynamic content

Not sure how to title my issue.

Not sure how to title my issue.

I have a Wordpress website, where most values are stored in custom fields and is very independent of language - e.g. most values are numbers.

Instead of creating a multi-site with several network sites, I am looking for a much simpler solution. Let's say I want to create a German version. Then ideally, I could redirect all German users accessing the site with /de/ to a German version of the theme.

E.g.: http://www.example.com/post-name/ directs to single.php in the theme files http://www.example.com/de/post-name/ directs to single-de.php in the theme files. So they will have the same content, but the translation will be in the theme file.

The only problem I can see is the canonical URL, but I am guessing this can be dealt with as well. So my question is, is it possible to redirect all users that go to /subfolder/post-name/ to a specific theme file and display the content of that post with the specific theme file?

Is there any solution I have missed that might be easier?

My solution above would only require redirects and some additional theme files instead of creating a completely new multi-site and importing everything and having to keep this site updated as well.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

PHP Interview Questions with Solutions: Prepare for PHP Interview

Prepare for PHP Interviews. Set Variable With php.ini File. Logic & Output Behind PHP Code Segment. Class Concept, Error & Functions in PHP. Start PHP Now!

PHP Web Application Development Company

As a top **PHP Web Application Development Company in USA**[https://www.dataeximit.com/php-development-services/](https://www.dataeximit.com/php-development-services/ "https://www.dataeximit.com/php-development-services/"), we at Data EximIT have...

Advantages of Hiring PHP Developer for your Website Project

PHP - Hypertext pre-processor, a scripting language used by many people in developing web pages, but most of us are unaware even of the full form. To train someone and make them learn this whole language is as difficult and time-consuming as it is...