I built a multilanguage website with Kirby for a client of mine. The client has decided that he no longer wants to translate the content in 3 languages (de/fr/en), but only wants to keep some essential pages for the english version.
Basically, what I need to do is (for the english version only):
- website.com/en => redirect to website.com/en/specific-page
- website.com/en/news/xxx => redirect all news subpages to website.com/en/specific-page
- website.com/en/jobs/xxx => redirect all jobs subpages to website.com/en/specific-page
- website.com/en/services/xxx => keep the services as they are
What would be the best way to proceed? I’ve tried modifying the .htaccess file without success. Also, the downside of using htaccess is that I cannot clear the cache of the users, so this could create some problems. Maybe I should try to do this a more “Kirby-friendly” way? Or should I do a redirect PHP function for example?