On Fri, 21 Jul 2006, Michael Glaser wrote: > Armed with my very limited knowledge of regular expressions and > mod_rewrite, I tried the following two configurations (one at a time) > and neither worked: > > RewriteCond %{REQUEST_URI} ^/[xX][yY]/(.*) [NC] > RewriteRule ^/[xX][yY]/(.*) http://xy.other.domain.net/$1 [R=301,L] > > RewriteCond %{REQUEST_URI} ^/[xy|XY|Xy|xY]/(.*) [NC] > RewriteRule ^/[xy|XY|Xy|xY]/(.*) http://xy.other.domain.net/$1 [R=301,L] > > Any suggestions on how I can solve this problem? You're sure that first one didn't work? Your first one is a proper regexp. The second one is not a proper regexp -- it should probably be (xy|XY|Xy|xY) instead of [xy|XY|Xy|xY], but you then need to use $2. If all else fails, you should be able to enumerate all possibilities: RewriteCond %{REQUEST_URI} ^/xy/(.*) [NC] RewriteRule ^/xy/(.*) http://xy.other.domain.net/$1 [R=301,L] RewriteCond %{REQUEST_URI} ^/XY/(.*) [NC] RewriteRule ^/XY/(.*) http://xy.other.domain.net/$1 [R=301,L] RewriteCond %{REQUEST_URI} ^/xY/(.*) [NC] RewriteRule ^/xY/(.*) http://xy.other.domain.net/$1 [R=301,L] RewriteCond %{REQUEST_URI} ^/Xy/(.*) [NC] RewriteRule ^/Xy/(.*) http://xy.other.domain.net/$1 [R=301,L] Mike