title: Mod Rewrite generating 500 internal error on page
body: <p>For some reason my .HTACCESS file won't re-write my users page, even though I'm sure the code to re-write it is correct.</p>
  
  <p>I want to turn</p>
  
  <pre><code>http://www.tfreeb.com/user/user?user=duenna
  </code></pre>
  
  <p>Into</p>
  
  <pre><code>http://www.tfreeb.com/user/duenna
  </code></pre>
  
  <p>And this is my HTACCESS file, could it be that something else is conflicting with it?</p>
  
  <p>The re-write rule for the user page is right at the bottom.</p>
  
  <pre><code>Options -Indexes
  
  php_flag display_startup_errors on
  php_flag display_errors on
  php_flag html_errors on
  php_flag  log_errors on
  php_value error_log  /home/path/public_html/domain/PHP_errors.log
  
  php_value error_reporting 32767
  
  
  ErrorDocument 404 /notfound.html
  ErrorDocument 403 /403.html
  
  RewriteEngine On
  
  RewriteCond %{HTTP_HOST} !^www.tfreeb.com$ [NC]
  RewriteRule ^(.*)$ http://www.tfreeb.com/$1 [L,R=301]
  
  RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
  RewriteRule .* – [F,L]
  
  RewriteCond %{HTTP_HOST} ^213\.143\.20\.122
  RewriteRule (.*) http://www.tfreeb.com/$1 [R=301,L]
  
  
  
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  
  RewriteEngine On
  RewriteRule ^user/([^/]*)$ /user/user.php?user=$1 [L]
  </code></pre>