i have rule like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/show_video.php?id=[a-zA-Z0-9_-]+/(.*)$ /video/$1 [R]
</IfModule>
i want to redirect: http://www.domain.com/show_video.php?id=8
to
http://www.domain.com/video/8/
show_video.php does not exist on the server.
how do i do that? my rule does not work.
You need to check the
QUERY_STRINGin a rewrite condition, here is an example that probably would work: