title: the right way redirect url using .htaccess
body: <p>what is the right way to redirect page using .htaccess?</p>
  
  <p>for ex i want to redirect <code>myweb.com/dorama/901110204/todome-no-kiss--paralel</code> to <code>myweb.com/dorama/1101071510/todome-no-kiss--parallel</code></p>
  
  <p>but when i try to access old link, link direct to <code>myweb.com/dorama/1101071510/todome-no-kiss--parallel?cat=dorama&amp;idp=901110204&amp;post=todome-no-kiss--paralel</code></p>
  
  <p>my full .htaccess file</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /
  
      RewriteCond %{HTTP_HOST} !^www\. [NC]
      RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  
      #Redirect Dead Link
      Redirect 301 /dorama/901110204/todome-no-kiss--paralel http://www.piratefiles.org/dorama/1101071510/todome-no-kiss--parallel
      Redirect 301 /dorama/601181905/life-as-a-girl http://www.piratefiles.org/dorama/1101072233/life-as-a-girl
      Redirect 301 /dorama/801130021/todome-no-kiss http://www.piratefiles.org/dorama/1101071405/todome-no-kiss
  
      RewriteRule ^([A-Za-z]+)/([0-9]+)/([\w-]+)/?$    view.php?cat=$1&amp;idp=$2&amp;post=$3&amp;%{QUERY_STRING}   [NC,L]
      RewriteRule ^category/([\w-]+)/?$ category.php?cat=$1&amp;%{QUERY_STRING}   [NC,L]
  
      # To externally redirect /dir/abc.php to /dir/abc
      RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+(.+?)\.php[\s?] [NC]
      RewriteRule ^ /%1 [R=301,L,NE]
  
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME}.php -f
      RewriteRule ^(.+?)/?$ $1.php [QSA,NC,L]
  
  &lt;/IfModule&gt;
  
  ErrorDocument 404 http://www.piratefiles.org/404.php
  </code></pre>