httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Gingras <francois.ging...@gmail.com>
Subject Re: [users@httpd] Rewrite Voodoo pt. 2
Date Tue, 26 Jan 2010 22:21:07 GMT


On 01/26/2010 05:07 PM, Reese wrote:
> I've been rolling everything that has been said around in my head,
> and now I'm wondering why something like the below would not work:
>
> RewriteEngine On
> RewriteCond (/sring1/)
> RewriteRule ^%(HTTP_HOST)/(string1)/(.*)% $2\.domain\.ext/$3
>
>
> Or am I just not getting it still?
>
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

You can't use %(HTTP_HOST) in the matching portion of the rule.

Frank.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message