Question : URL Rewrite Rule

I have this url rewrite set, but it's not working can someone help



i want to change the URL from

/Christian.Music.Media/musicvideos.htm?cat=video&artist=abc&title=def&id=1134

to

/Christian.Music.Media/abc-def/1134.htm
1:
2:
3:
4:
5:
6:
7:
8:
Options +FollowSymLinks
 
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} cat=([aA-zZ])$
RewriteCond %{QUERY_STRING} artist=([aA-zZ])$
RewriteCond %{QUERY_STRING} title=([aA-zZ])$ 
RewriteRule ^/Christian.Music.Media-(.*)/(.*)-(.*)/(.*)\.htm$ /Christian.Music.Media/musicvideos.htm?cat=$1&artist=$2&title=$3&id=$4 [R=301,L]

Answer : URL Rewrite Rule

The following, in a .htacces file, will allow a user  to enter URL:

/Christian.Music.Media/abc-def/1134.htm

and be served this page:

/Christian.Music.Media/musicvideos.htm?cat=video&artist=abc&title=def&id=1134

-----


RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule Christian.Music.Media/([^-/.]*)-([^-/.]*)/([^-/.]*)\.htm$  /Christian.Music.Media/musicvideos.htm?cat=video&artist=$1&title=$2&id=$3 [L]
Random Solutions  
 
programming4us programming4us