title: clean url in php creating error in loading page
body: <p>This is the link below I want to clean in my website with a rewrite.</p>
  
  <pre><code>http://www example.com/detail.php?url=personname 
  </code></pre>
  
  <p>and I am using this rewrite code:</p>
  
  <pre><code>ErrorDocument 404 /404.php
  AddDefaultCharset UTF-8
  Header unset ETag
  
  FileETag None
  
  Options +FollowSymLinks -MultiViews
   # Turn mod_rewrite  on
  RewriteEngine On
  RewriteBase /
  
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+detail\.php\?url=([^\s&amp;]+) [NC]
  RewriteRule ^ detail/%1? [R=301,L]
  
  RewriteRule ^detail/([^/]+)/?$ detail.php?url=$1 [L,QSA]
  </code></pre>
  
  <p>the code work properly and url change to this 
  <code>http://www example.com/detail/personname</code> but the detail of person is not showing:</p>
  
  <p>and all the url of the page get change to this <code>http://www example.com/detail/detail.php?url=personname</code>  can you guide me little in this matter</p>