mod_rewrite: Rename filenames based on language

I have a bilingual website both in English and German. Both versions are served from the same root files like index.php, projects.php, people.php, etc.

The English versions are called via

The German versions are called via

For SEO reasons I like the German filenames to be Germanized:

de/projects.php -› projekte.php
de/people.php   -› leute.php

Can anybody help out?

Source: .htaccess

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.