channel.php?channel=bike /listinfo.php?mid=3 /index.php?usertype=bike&page=2 /addinfo.php?enews=MAddInfo&mid=12 /article?channel=bike&type=blog&classid=56&id=1716
我想都写成这样的形式:
/article/bike/blog/56/1716.htm 就是说
1,php文件作为一个目录
2,参数值作为一个目录
3,最后一个url的id值不是做目录,而是变成1716.htm的形式(只有着个是,其他的参数都是最为目录)
我想都写成这样的形式:
/article/bike/blog/56/1716.htm 就是说
1,php文件作为一个目录
2,参数值作为一个目录
3,最后一个url的id值不是做目录,而是变成1716.htm的形式(只有着个是,其他的参数都是最为目录)
http://www.iwebtool.com/htaccess_url_rewriteOptions +FollowSymLinks
RewriteEngine onRewriteRule /channel/(.*)/type/(.*)/classid/(.*)/id/(.*)\.htm article?channel=$1&type=$2&classid=$3&id=$4