httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Smith <ke...@netsmith.ltd.uk>
Subject [users@httpd] Apache RewriteRule
Date Sat, 19 Nov 2005 12:33:08 GMT
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



Mime
View raw message