index.php?xiami={id}
index.php?xiamiplayer={id}
index.php?m163={id}
index.php?m163player={id}
index.php?ttpod={songname}
index.php?ttpodplayer={songname}
index.php?kugou={songname}
index.php?kugouplayer={songname}
.htaccess下是这么写的
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^xiami/(\d)[\/][.mp3]$ index.php?xiami=$1 [NC]
RewriteRule ^xiamiplayer/(\d)[\/][.mp3]$ index.php?xiamiplayer=$1 [NC]
RewriteRule ^m163/(\d)[\/][.mp3]$ index.php?m163=$1 [NC]
RewriteRule ^m163player/(\d)[\/][.mp3]$ index.php?m163player=$1 [NC]
RewriteRule ^ttpod/(.+?)[\/][.mp3]$ index.php?ttpod=$1 [NC]
RewriteRule ^ttpodplayer/(.+?)[\/][.mp3]$ index.php?ttpodplayer=$1 [NC]
RewriteRule ^kugou/(.+?)[\/][.mp3]$ index.php?kugou=$1 [NC]
RewriteRule ^kugouplayer/(.+?)[\/][.mp3]$ index.php?kugouplayer=$1 [NC]
</IfModule>
如何写成nginx 的规则呢
1
Septembers 2015-03-22 06:27:46 +08:00 2
|
2
fantasts OP @Septembers 转换出来是没用
|