Hello,
I'm having some issues with a mod_rewrite rule. I have to make 2 types of links (the first one is for the artists that have an album, the second one is the for the ones that don't): 1) /lyrics/artist-name/album-name/song-name.php 2) /lyrics/artist-name/song-name.php
My code looks like this:
RewriteRule ^lyrics/(.*)/(.*)/(.*).php$ /artists-lyrics.php?a=$1&b=$2&c=$3 [QSA,L]
RewriteRule ^lyrics/(.*)/(.*).php$ /artists-lyrics.php?a=$1&b=$2 [QSA,L]
Sadly, only the first rule works. How can I change them in order to make them both work?
Thank you.