Multi-lingual site without subfolders
I'm not exactly sure what you are trying to achieve, but here is a way to have unlimited locales with only a single subfolder in your public root directory.


Put all of your locale subfolders into a single folder, called locales for example. So your directory structure would be:

public/locales/de/
public/locales/es/
public/locales/fr/

Make sure you update the craft path in each locale's index.php file accordingly:

$craftPath = '../../../craft';

Then you just need the following code in your root .htaccess file to redirect to the appropriate subfolder:

# Redirect locales
RewriteCond %{REQUEST_URI} ^/(de|es|fr)/ [NC]
RewriteRule (.+) /locales/$1 [QSA,L]