Try something like this:
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ bio/bio.php?q=$1 [L]
The first line will skip the RewriteRule if it finds the corresponding physical file; the second line will skip it if it finds the corresponding directory. The third line is the rewrite rule that will be executed if the previous conditions are met.
source share