Re: [users@httpd] Rewrite part of url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/1/05, Don Cross <doncross@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux