[users@httpd] Apache RewriteRule

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

 



Hi All,

Wonder if someone can work this one outt, I'm a bit stumped.

I have the following RewriteRule:

RewriteRule ^/product_category/([0-9]+)\.html\?source\=(.*) /product_category.php?top_cat_id=$1&source=$2

This is meant to rewrite this URL:
   http://www.foobar.com/product_category/22.html?source=foobar

Into this URL:
   http://www.foobar.com/product_category.php?top_cat_id=22&source=foobar

However, it doesn't get the data after the source= parameter.

It all works fine if I do this:
RewriteRule ^/product_category/([0-9]+) /product_category.php?top_cat_id=$1

So, it seems there something no right trying retrieve parameters after .html extension?

Any ideas?

Regards,

Kevin


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[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