More RewriteRule issues ..

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

 



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