Forum Moderators: phranque
RewriteRule ^(\w\w)/(\w+)\.html /$2.php?lang=$1 [L]
or, if there are never more than two languages, RewriteRule ^(en|fr)/(\w+)\.html /$2.php?lang=$1 [L]
and, for the language-less version, RewriteRule ^(\w+)\.html /$1.php [L]
You can cross-check in the php subforum, but I don't think you even need to say "lang=" (with no value) since you can so easily write the php* to do the same thing, whether the parameter is absent or zero or undefined. In fact you probably should do the php that way. :: looking vaguely around for nearest available French speaker ::