2013-06-25 108 views

回答

0

假设你的意思是它倒过来,而且最初的URL中包含了播客的名字一次:

RewriteEngine on 
RewriteRule ^podcast/(.*)$ /podcast/index.php?name=$1 [NC,L] 

这转化从/podcast/2013-06-14_01-Practice-English.mp3任何输入网址/podcast/index.php?name=2013-06-14_01-Practice-English.mp3(测试@http://htaccess.madewithlove.be/)。

由于您似乎是一位新的SO用户,请查看常见问题解答/帮助和此link

+0

对不起,我希望我的最终输出为/podcast/2013-06-14_01-Practice-English.mp3/ – user2197774

+0

@ user2197774带有斜线?这没有任何意义,但''^ podcast /(.*)/$''应该这样做。 – nietonfir