10-10-2008, 03:05 AM
|
#1 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
|
need some mod_rewrite help
i read a few tutorials on mod_rewrite but im still stumped.
what i'm wondering is if i have something like this
Code:
cart.php?m=product_list&c=7
how would i write this? to put like /products/the-products-name (where 7 is the products title)
this is what i've tried so far
Code:
RewriteEngine On
^products$/the-products-name cart.php?m=product_list&c=$1
ps: another thing that confuses me is once i have written the rules in .htaccess will the rules automatically take effect? or do i have to go back to the code and rewrite all the links such as wherever it calls ?m=product_list&c i have to rewrite it with /products/$tblrow ? i just hope its not like that but let me know :) thanks alot
__________________
no signature set
|
|
|
|