httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bearsfoot <adam.p.reyno...@gmail.com>
Subject [users@httpd] More RewriteRule issues ..
Date Tue, 24 Nov 2009 02:23:41 GMT

Hi,

I have the following rules in my .htaccess.

RewriteRule products/(.*)/ /index.php?view=products&brand=$1 [L]
RewriteRule products/(.*)/(.*)/ /index.php?view=productdetail&brand=$1&id=$2
[L]

These are the urls the users see:
http://www.mysite.com/products/product-name/ 
http://www.mysite.com/products/product-name/1/ 

These are the pages the users see:
http://www.mysite.com/index.php?view=products&brand=product-name
http://www.mysite.com/index.php?view=productdetail&brand=product-name&id=1


I want to add another rule rewrites the folowing url. 
http://www.mysite.com/products/product-name/?filter=10

to

http://www.mysite.com/index.php?view=products&brand=product-name&filter=10

Can someone please show me how to implement this rule without interferring
with the existing second rule  ?

Thanks,
Adam


-- 
View this message in context: http://old.nabble.com/More-RewriteRule-issues-..-tp26489575p26489575.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


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