I currently have the following code in place to give users their own URL for their username:
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ profile.php?username=$1
However, any existing directories such as /about/
or /terms/
no longer work because this code has overwritten the URL.
Is there anwyay I can adjust this code to only point the URL to a profile if the file or directory doesn't already exist?