View Single Post
Old 10-10-2008, 03:59 PM   #5 (permalink)
sarmenhb
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

thanks xenon! u rock.

these are the rules i wrote based on the cart that i'm using
which can be found at digiSHOP :: Shopping Cart Software & Ecommerce :: Products
i have to figure out how to change the urls in the application lol thats gonna take forever but if you can please review the rules that i wrote and see if there correct before i impplement it that would be great :)

Code:
RewriteEngine On
RewriteRule  ^Products/([0-9]+)$ cart.php?m=product_list&c=$1 [QSA]
RewriteRule ^Details/([0-9]+)$ cart.php?m=product_detail&p=$1 [QSA]
RewriteRule ^Login/$ secure/login.php?m=client_login [QSA]
RewriteRule ^Cart/$ cart.php?m=view
RewriteRule ^Login/$ secure/login.php
RewriteRule ^Search/$/([a-z][A-Z][0-9]+)/([0-9]+)/([0-9]+) cart.php?m=search_results&search=$1&x=$2&y=$3
RewriteRule ^Account/$ secure/account.php
RewriteRule ^GiftCertificate/$ cart.php?m=gift_certificates
RewriteRule Search/$ cart.php?m=search
RewriteRule ^Featured/$ featured.php
RewriteRule ^Billing/$ checkout.php?m=bill
RewriteRule ^Payment/$ secure/checkout.php?m=payment
RewriteRule ^Checkout/$ secure/checkout.php
RewriteRule ^OrderSubmited/$ secure/orderSubmitted.php
RewriteRule ^Account/$ secure/account.php
RewriteRule ^History$/ secure/account.php?m=order_history

# the oNum value is displayed in this format 1223652380-305
#
RewriteRule ^OrderDetails/([0-9])\-([0-9]+)/$ secure/account.php?m=order_detail&oNum=$1
RewriteRule ^Billing/$ secure/account.php?m=change_billing
RewriteRule ^Shipping/$ secure/acount.php?m=change_shipping
RewriteRule ^ChangePassword/$ secure/account.php?m=change_password
RewriteRule ^Login/$ secure/login.php?m=client_login
let me know what you think,
thanks again.
ps: how do i know what flags to put?
__________________
no signature set
sarmenhb is offline  
Reply With Quote