Htaccess 301 change old URL <p>I would like change url in my htaccess and using redirect 301 for SEO.</p> <p>my old url:</p> <pre><code>RewriteRule ^my-oldurl-(([0-9]+)-[a-zA-z0-9_-]+).html$ index.php?page=my-detail&amp;id=$1&amp;cat=$2 [QSA,L] </code></pre> <p>my new url:</p> <pre><code>RewriteRule ^my-newurl-(([0-9]+)-[a-zA-z0-9_-]+).html$ index.php?page=my-detail&amp;id=$1&amp;cat=$2 [QSA,L] </code></pre> <p>My last test (error 500):</p> <pre><code>RewriteRule ^my-oldurl-(([0-9]+)-[a-zA-z0-9_-]+).html ^my-newurl-(([0-9]+)-[a-zA-z0-9_-]+).html [QSA,R=301] </code></pre> <p>Thank you for any advice.</p>