httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Rewrite part of url
Date Fri, 02 Dec 2005 03:01:12 GMT
On 12/1/05, Don Cross <doncross@earthlink.net> 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:  http://sample.com/new/item/03363rly???.htm
> 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

Joshua.

---------------------------------------------------------------------
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