sgcet,
Okay, I'll type slowly:
Your regex,
matches
Code:
/myfiles/listpro.php?search=$1&page=$2 [NC] [L]
BTW, [NC] [L] ***MUST*** be written [NC,L]
To get your rewrite to land on myfiles/listpro.php without looping, you'll have to use RewriteCond like this:
Code:
RewriteCond %{REQUEST_URI} !^myfiles/listpro.php$
RewriteRule ^([a-z0-9]+)/(.*)$ /myfiles/listpro.php?search=$1&page=$2 [NC,L]
Do you see the loop? If not, remember that myfiles IS MATCHED by ([a-z]+) and (.*) will match EVERYTHING (listpro.php). THAT is where your loop is. By using the RewriteCond(ition), you prevent the loop with the condition that $1 cannot be myfiles AND $2 cannot be listpro.php.
Regards,
DK