You can try: RewriteRule ^test$ /test.php [L]put it above your general redirect, written for the entire URL of the site.
Such as:
RewriteRule ^test$ /test.php [L] --page wise condition
RewriteRule ^/?$ "http\:\/\/example\.com\/" [R=301,L] -- generic for site
RewriteRule ^(.[^\.]*)$ index.php?$1 [QSA,L] -- generic for site
source
share