.htaccess dynamic 301 rewrite
<p>How can I convert some rewrite rules in .htaccess?
My old site had the following:</p>

<pre><code>RewriteRule ^([^/]*)\.html$ index.php?name=$1 [L]
</code></pre>

<p>which would rewrite url to : domain.com/some-page.html</p>

<p>Now I'm using different rewrite with virtual directories like:</p>

<pre><code>RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</code></pre>

<p>this translates into domain.com/page/somepage/</p>

<p>I have tried using </p>

<pre><code>Redirect 301 some-page.html page/somepage/
</code></pre>

<p>but keep getting 404 error</p>