Add spaces: Codeworksonlyforarewriteurl/en/schemaandshouldworkforanypluginwithasameproblem,althoughnottested.
Code works only for a rewrite url /en/ schema and should work for any plugin with a same problem, although not tested.