I did think about that, but I don’t think there’s any elegant solution there. There’s no way* for mod_rewrite to take a URL like
domain.com/doc1.html
and turn it into
domain.com/english/doc1.html or domain.com/espanol/doc1.html, how would it know which one is right, or if the document even belonged to one of those directories?
*If your server supported it, it would be possible to implement a RewriteMap (
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteMap) but that would mean a program would have to be written, mod_rewrite would execute it on each page hit, and the program would return the new mapped URL to send along to the server. The program would have to look in the MODx database to find the partially matching alias. This is the same logic basically that I considered when I recommended a plugin. I’m not sure which way would be easier to program and which way would create less of a performance detriment.
Even if you did get mod_rewrite responding to your "shortened" URLs properly, there’s the other side of the coin. When MODx generates page links, with friendly URLs turned on, it’s going to create them with the /english and /espanol directories in them. Back to a MODx plugin to parse the document for such URLs and modify them.