RewriteEngine on # technical problems with our friends at Opera: # RewriteRule ^.*$ /technical_problem.php [L] RewriteRule ^id-(.*)/brand-(.*)$ /games/brand.php?brand_id=$1\&make=$2 [L] # search by category RewriteCond %{REQUEST_URI} !cat-(.*)/catId-(.*)/brand-(.*)/brandId-(.*)/limit-(.*)/offset-(.*)/page-(.*) RewriteCond %{REQUEST_URI} !cat-(.*)/catId-(.*)/brand-(.*)/brandId-(.*) RewriteCond %{REQUEST_URI} !cat-(.*)/catId-(.*)/limit-(.*)/offset-(.*)/page-(.*) RewriteRule ^cat-(.*)/catId-(.*)$ /games/brand.php?catName=$1\&catId=$2 [L] RewriteCond %{REQUEST_URI} !cat-(.*)/catId-(.*)/brand-(.*)/brandId-(.*)/limit-(.*)/offset-(.*)/page-(.*) RewriteCond %{REQUEST_URI} !cat-(.*)/catId-(.*)/brand-(.*)/brandId-(.*) RewriteRule ^cat-(.*)/catId-(.*)/limit-(.*)/offset-(.*)/page-(.*)$ /games/brand.php?catName=$1\&catId=$2\&limit=$3\&offset=$4\&page=$5 [L] # search by category RewriteCond %{REQUEST_URI} !cat-(.*)/catId-(.*)/brand-(.*)/brandId-(.*)/limit-(.*)/offset-(.*)/page-(.*) RewriteRule ^cat-(.*)/catId-(.*)/brand-(.*)/brandId-(.*)$ /games/brand.php?catName=$1\&catId=$2\&make=$3\&brand_id=$4 [L] RewriteRule ^cat-(.*)/catId-(.*)/brand-(.*)/brandId-(.*)/limit-(.*)/offset-(.*)/page-(.*)$ /games/brand.php?catName=$1\&catId=$2\&make=$3\&brand_id=$4\&limit=$5\&offset=$6\&page=$7 [L] # search by model RewriteCond %{REQUEST_URI} !model-(.*)/modelId-(.*)/brand-(.*)/brandId-(.*)/limit-(.*)/offset-(.*)/page-(.*) RewriteRule ^model-(.*)/modelId-(.*)/brand-(.*)/brandId-(.*)$ /games/brand.php?model=$1\&modelId=$2\&make=$3\&brand_id=$4 [L] RewriteRule ^model-(.*)/modelId-(.*)/brand-(.*)/brandId-(.*)/limit-(.*)/offset-(.*)/page-(.*)$ /games/brand.php?model=$1\&modelId=$2\&make=$3\&brand_id=$4\&limit=$5\&offset=$6\&page=$7 [L] RewriteRule ^id-(.*)$ /games/details.php?id=$1 [L]