custom url in php using htaccess (url rewriting)
<p>i am new in url rewriting in php htaccess. currently my url as like <br> <a href="http://localhost/htaccess/Movie/my-parameter-value" rel="nofollow noreferrer">http://localhost/htaccess/Movie/my-parameter-value</a></p>

<p>but i want to <a href="http://localhost/htaccess/my-parameter-value" rel="nofollow noreferrer">http://localhost/htaccess/my-parameter-value</a><br> i want remove Movie (movies is from action source  name ex "movie.php"); <br>
<strong>Thanks In Advance</strong></p>

<p>here is my code :</p>

<pre><code>#Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On     
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+(.*?)(?:\+|%20|\s)+(.+?)\sHTTP [NC]
RewriteRule ^ /%1-%2 [L,NE,R=302]

# To externally redirect /dir/foo.php?name=123 to /dir/foo
RewriteCond %{THE_REQUEST} ^GET\s([^.]+)\.php\?name=([^&amp;\s]+) [NC] 
RewriteRule ^ %1/%2? [R,L]     


# To internally forward /dir/foo/12 to /dir/foo.php?name=12
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/([^/]+)?$ $1.php?name=$2 [L,QSA]
</code></pre>