I would like my url's seem like example.com/login or example.com/aramalipoor. How do i see if trailing folder title is just one of my modules or otherwise? My modules have been in public_html/mods/ folder and my .htaccess is within public_html folder.

After apache rewrites my url it may be like index.php?m=login.
I would like apache to rewrite example.com/aramalipoor with index.php?m=user&uname=aramalipoor

Somesay RewriteCond %{REQUEST_FILENAME} !-f is my solution, but let's say my .htaccess file is within public_html and also the folder i wish to look for existence is positioned within public_html /mods folder?