RewriteEngine on
RewriteRule ^404$ index.php?page=404
RewriteRule ^lang-change/([_A-Za-z0-9-]+)$ index.php?page=lang_change&lang=$1
RewriteRule ^product/([_A-Za-z0-9-]+)-p-([0-9]+)$ index.php?page=product&sef=$1&id=$2
RewriteRule ^search/([0-9]+)-(.*)/page/([0-9]+)$ index.php?page=search&c_id=$1&q=$2&page_no=$3
RewriteRule ^search$ index.php?page=search
RewriteRule ^cart$ index.php?page=cart
RewriteRule ^cart-trash$ index.php?page=cart_trash
RewriteRule ^cart-remove/([0-9]+)$ index.php?page=cart_remove&id=$1
RewriteRule ^ajax$ ajax.php
RewriteRule ^products/([_A-Za-z0-9-]+)/page/([0-9]+)$ index.php?page=category&sef=$1&page_no=$2
RewriteRule ^products/([_A-Za-z0-9-]+)$ index.php?page=category&sef=$1
RewriteRule ^brand/([0-9]+)/([_A-Za-z0-9-]+)/page/([0-9]+)$ index.php?page=brand&id=$1&sef=$2&page_no=$3
RewriteRule ^brand/([0-9]+)/([_A-Za-z0-9-]+)$ index.php?page=brand&id=$1&sef=$2
RewriteRule ^discounts/page/([0-9]+)$ index.php?page=discounts&page_no=$1
RewriteRule ^discounts$ index.php?page=discounts
RewriteRule ^popular-products/page/([0-9]+)$ index.php?page=popular_products&page_no=$1
RewriteRule ^popular-products$ index.php?page=popular_products
RewriteRule ^blog/page/([0-9]+)$ index.php?page=blog&page_no=$1
RewriteRule ^blog/([_A-Za-z0-9-]+)$ index.php?page=blog_detail&sef=$1
RewriteRule ^blog$ index.php?page=blog
RewriteRule ^page/([_A-Za-z0-9-]+)$ index.php?page=page&sef=$1
RewriteRule ^renew-password/([_A-Za-z0-9-]+)$ index.php?page=renew_password&hash=$1
RewriteRule ^forgot-password$ index.php?page=forgot_password
RewriteRule ^contact$ index.php?page=contact
RewriteRule ^faq$ index.php?page=faq
RewriteRule ^login$ index.php?page=login
RewriteRule ^register$ index.php?page=register
RewriteRule ^logout$ index.php?page=logout
RewriteRule ^account$ index.php?page=account
RewriteRule ^account/orders/page/([0-9]+)$ index.php?page=account_orders&page_no=$1
RewriteRule ^account/orders$ index.php?page=account_orders
RewriteRule ^account/orders/([0-9]+)$ index.php?page=account_order_detail&id=$1
RewriteRule ^account/address$ index.php?page=account_address
RewriteRule ^account/favorites$ index.php?page=account_favorites
RewriteRule ^account/stock-follow$ index.php?page=account_stock_follow
RewriteRule ^account/price-follow$ index.php?page=account_price_follow
RewriteRule ^account/address/add$ index.php?page=account_address_add
RewriteRule ^account/address/edit/([0-9]+)$ index.php?page=account_address_edit&id=$1
RewriteRule ^account/address/delete/([0-9]+)$ index.php?page=account_address_delete&id=$1
RewriteRule ^account/tickets$ index.php?page=account_tickets
RewriteRule ^account/tickets/new$ index.php?page=account_tickets_new
RewriteRule ^account/tickets/detail/([0-9]+)$ index.php?page=account_ticket_detail&id=$1
RewriteRule ^sitemap.xml$ sitemap.php
RewriteRule ^sitemap_([_A-Za-z0-9-]+)_page_([0-9]+).xml$ sitemaps/sitemap_$1.php?page_no=$2
RewriteRule ^sitemap_([_A-Za-z0-9-]+).xml$ sitemaps/sitemap_$1.php
RewriteRule ^payment-result/success$ index.php?page=payment_result&status=1
RewriteRule ^payment-result/error$ index.php?page=payment_result&status=0
RewriteRule ^bank-accounts$ index.php?page=bank_accounts
RewriteRule ^order-tracking/([0-9]+)/(.*)$ index.php?page=order_tracking&id=$1&email=$2
RewriteRule ^order-tracking$ index.php?page=order_tracking