title: rewrite only subfolder not files
body: <p>What I want to achieve is build urls like /profile1 /profile2 ...etc. which rewrites to profile.php?id=profile1</p>
  
  <p>The code I am using currently is</p>
  
  <pre><code>RewriteRule  ^(.+)$              profile.php?p=$1    [NC,QSA,L]
  </code></pre>
  
  <p>It works as expected but problem is It also rewrites for urls like /sp.php?e=mybids</p>
  
  <p>Those Urls are also redirected to profile.php, which I don't want it to happen.</p>
  
  <p>Any help?</p>