On 26-Jan-10 17:21, Frank Gingras wrote:
You can't use %(HTTP_HOST) in the matching portion of the rule.
Dang. How about this? RewriteEngine On RewriteCond %{HOST_HTTP} (www\.)?domain.ext/string1/ RewriteRule ^/(string1)/(.*)$ $2\.domain\.ext/$3 [R=301,L] Reese --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx