Mod rewrite .htaccess mod_rewrite;新URL的目标是同一个文件

Mod rewrite .htaccess mod_rewrite;新URL的目标是同一个文件,mod-rewrite,Mod Rewrite,我该怎么办?您需要为这两种类型添加不同的内容。例如,您可以添加一个主子文件夹,它可能更好(更清晰):/lystics/ARTIST/SONG-TITLE和/album/ARTIST/album-NAME。更妙的是,如果我是你,我会这样看你的链接:/artist/NAME,/artist/NAME/album/album-NAME和/artist/NAME/lystics/SONG-NAME(因为艺人是这里最常见的组成部分)非常感谢你的回复。我想我明白了。我会的! <IfModule mod

我该怎么办?

您需要为这两种类型添加不同的内容。例如,您可以添加一个主子文件夹,它可能更好(更清晰):
/lystics/ARTIST/SONG-TITLE
/album/ARTIST/album-NAME
。更妙的是,如果我是你,我会这样看你的链接:
/artist/NAME
/artist/NAME/album/album-NAME
/artist/NAME/lystics/SONG-NAME
(因为艺人是这里最常见的组成部分)非常感谢你的回复。我想我明白了。我会的!
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.html$ /lyrics.php?artist=$1&songname=$2
RewriteRule ^([^/]*)/([^/]*)\.html$ /album.php?artist=$1&album=$2
RewriteRule ^([^/]*)\.html$ /artist.php?artist=$1 [L]
</IfModule>
    The original URL:
    http://japlyrics.com/lyrics.php?artist=suiyoubi_no_kanpanera&songname=diablo 
    The rewritten URL:
    http://japlyrics.com/suiyoubi_no_kanpanera/diablo.html

    The original URL:
    http://japlyrics.com/album.php?artist=world_order&album=have_a_nice_day
    The rewritten URL: **This one I have issues with.** It think it is for the above URL.
    http://japlyrics.com/world_order/have_a_nice_day.html

    The original URL:
    http://japlyrics.com/artist.php?artist=daoko
    The rewritten URL:
    http://japlyrics.com/daoko.html