RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# product detail
RewriteRule ^details/([^/]+)/?$ product-description.php?url=$1 [NC,L,QSA]

# get all products
RewriteRule ^getproducts$ product-list.php [NC,L,QSA]
