views:

12

answers:

1

For each web request (file or directory) that doesn't start with /en-US/, I want to serve up the original resource if it exists, otherwise serve up the /en-US/ version.

How would I do this using rewrite rules in a .htaccess file?

+3  A: 

Try something like this:

RewriteCond $0 !^en-US/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .+ en-US/$0 [L]
Gumbo
Thanks. That's perfect.
Anthony Faull