title: Rewrite rule for clean url
body: <p>I'm trying to write a clean url for profiles on my website. For example I'd want this url</p>
  
  <pre><code>/profile?user=MrEasyBB
  </code></pre>
  
  <p>to become</p>
  
  <pre><code>/MrEasyBB
  </code></pre>
  
  <p>My current <code>htaccess</code> starts like this</p>
  
  <pre><code>Options -MultiViews
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ profile.php?user=$1 [NC,L]
  
  DirectoryIndex index.php
  </code></pre>
  
  <p>Which this should all work if I am correct. But what happens per say if the page url they type is </p>
  
  <pre><code>/help
  </code></pre>
  
  <p>There shouldn't be a user named <code>help</code>, and the page should direct to <code>help.php</code> instead. Can I write a rule to not follow a certain pattern? I'd also like to know to change the rule for images, comments, and so forth:</p>
  
  <p>IE</p>
  
  <pre><code>/image/user/MrEasyBB/1239123871712194124.jpg
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>/image/picture.php?user=MrEasyBB&amp;image=1239123871712194124.jpg
  </code></pre>
  
  <p>Which I am not positive on how to add multiples and to follow the pattern needed any suggestions on the rewrite rules if the first one won't work and how to do the second one?</p>
  
  <p>I've also downloaded the <code>htaccess</code> cheatsheet pdf to learn a little more</p>