title: Re-writing Dynamic URL with .htaccess
body: <p>I'd like to remove the ".php" at the end of all webpages
  AND
  rewrite my dynamic urls for the section "example.com/archive?url=..."</p>
  
  <p><strong>What I got so far:</strong></p>
  
  <pre><code>Options -MultiViews
  
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  </code></pre>
  
  <p>This part works fine but now I also want to rewrite my dynamic urls for the following section of the website.</p>
  
  <p><strong>Old url:</strong> example.com/archive?url=test-article</p>
  
  <p><strong>New url:</strong> example.com/archive/test-article</p>
  
  <pre><code>RewriteRule ^archive/([^/]+)$ archive?url=$1
  </code></pre>
  
  <p>This part doesn't work. What am I missing here?</p>
  
  <p>It's used for an addon domain so maybe this has something to do with the problem?</p>
  
  <p><strong>EDIT 1:</strong></p>
  
  <p>I put some garbage in my .htaccess file and it generates an error so I know for sure it's reading the file.</p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <p>I disabled multiviews as proposed below but getting an internal server error now.
  This is the error log:</p>
  
  <p>[Tue May 20 13:12:12 2014] [error] [client (ip)] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace</p>
  
  <p><strong>Edit 3: I found the solution</strong></p>
  
  <p>I solved the problem by changing the last rule into:</p>
  
  <pre><code>RewriteRule ^news/([^/]+)$ archive?url=$1
  </code></pre>