【发布时间】:2011-06-04 18:52:31
【问题描述】:
我正在尝试重写我的 url 以生成 seo 友好的 url。我的原始网址类似于
video_play.php?cat=1?author=3?video=4
在哪里
"cat=1"代表我的类别,1 是我的类别名称的 id,例如歌曲、电影等。"author=3"3是歌手的id。"video=4"4是当前正在播放的曲目的id...
我想让这个网址有点像video_play/song/artistname/songtitle.html
如果有人可以帮助我,我正在 .htaccess 中尝试此代码。在此先感谢...
RewriteRule /author/(.*)/cate/(.*) video_play.php?author=$1&cate=$2
【问题讨论】: