RewriteEngine On


RewriteRule ^product/([^/]*)/(.*)$ index.php?pid=$1&art=$2 [L]
RewriteRule ^category/([^/]*)/(.*)/(.*)$ index.php?cid=$1&cat=$2&soft=$3 [L]
RewriteRule ^subcategory/([^/]*)/(.*)/(.*)/(.*)$ index.php?sid=$2&cat=$3&soft=$4 [L]
RewriteRule ^article/([^/]*)/(.*)$ index.php?art=$2 [L]