||10-10-2008 12:11 AM
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
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
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
||10-10-2008 06:28 AM
RewriteRule products/(.*)/(.*) /cart.php?m=$1&c=$2
this way, it would be something along the lines of http://www.yoururl.com/products/Product-List/Blue-Widget
hope this helps,
|All times are GMT. The time now is 11:51 AM.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0