httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Rewrite part of url
Date Fri, 02 Dec 2005 03:01:12 GMT
On 12/1/05, Don Cross <> wrote:
>    I am using linux 9.3 and apache 2.053. I have never used MOD_Rewrite
> before, but I think it is the tool I need. I would like to rewrite part of a
> url. Example:
> The ??? is the code for the item I would like to rewrite depending in the
> directory the client is requesting.
> The directory could be /brand _562 .I would like to replace the ??? in this
> case with the code 562.
> I have looked at the practical solutions but am still lost as to how I would
> do it.

Something like
RewriteRule ^/brand_([0-9]{3})$ /new/item/03363rly$1.htm


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message