RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /products.php?brandid=27&pname=$1 [NC] PHP: The above works only for branid=27 And, If I include mutilple statements, LIKE RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /products.php?brandid=27&pname=$1 [NC] RewriteRule ^(.*)$ /products.php?brandid=42&pname=$1 [NC] RewriteRule ^(.*)$ /products.php?brandid=47&pname=$1 [NC] PHP: it will also run for brandid 27. I tried lots of stuff but wont able to rewrite rules for mutiple brandid. For Example: The url [http://www.3gphone.in/products.php?brandid=27&pname=Acer] redirects [http://www.3gphone.in/Acer]