Hi all, i here with a new problem, i am trying to rewrite url in a site

http://domain.com/products.php?uid=123
to
http://domain.com/abc/products.php

it goes fine

but when i try this
http://domain.com/abc/product-detail.php?pid=456

pid is not set, i don't get any value in pid, redirect.php has the code to include the requested page

here is my .htaccess

Code:
<IfModule mod_rewrite.c>
	RewriteEngine on
	
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^([a-zA-Z0-9_-]+)$ redirect.php?c=$1
	
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)/$ redirect.php?c=$1
	
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)/(.*)\.php$ redirect.php?c=$1&p=$2
	
</IfModule>