求一个APACHE下的rewrite规则
rewrite^/all/index_([0-9]+).html$/index.php?mod=index&id=$1last;rewrite^/book/([0-9]+...
rewrite ^/all/index_([0-9]+).html$ /index.php?mod=index&id=$1 last;
rewrite ^/book/([0-9]+)/index.html$ /index.php?mod=book&bookid=$1 last;
rewrite ^/book/([0-9]+)_([0-9]+)/index.html$ /index.php?mod=bookx&bookid=$1&id=$2 last;
rewrite ^/book/([0-9]+)/([0-9]+).html$ /index.php?mod=bookview&bookid=$1&id=$2 last;
rewrite ^/book/([0-9]+)/vip_([0-9]+).html$ /index.php?mod=vipview&bookid=$1&id=$2 last;
rewrite ^/all/vip([0-2])_index_([0-9]+).html$ /index.php?mod=vip&vip=$1&id=$2 last;
rewrite ^/sort([0-9]+)/index_([0-9]+).html$ /index.php?mod=sort&sortid=$1&id=$2 last;
rewrite ^/sort([0-9]+)/vip([0-2])_index_([0-9]+).html$ /index.php?mod=sortvip&sortid=$1&vip=$2&id=$3 last;
请高手把它转换成APACHE的谢谢 展开
rewrite ^/book/([0-9]+)/index.html$ /index.php?mod=book&bookid=$1 last;
rewrite ^/book/([0-9]+)_([0-9]+)/index.html$ /index.php?mod=bookx&bookid=$1&id=$2 last;
rewrite ^/book/([0-9]+)/([0-9]+).html$ /index.php?mod=bookview&bookid=$1&id=$2 last;
rewrite ^/book/([0-9]+)/vip_([0-9]+).html$ /index.php?mod=vipview&bookid=$1&id=$2 last;
rewrite ^/all/vip([0-2])_index_([0-9]+).html$ /index.php?mod=vip&vip=$1&id=$2 last;
rewrite ^/sort([0-9]+)/index_([0-9]+).html$ /index.php?mod=sort&sortid=$1&id=$2 last;
rewrite ^/sort([0-9]+)/vip([0-2])_index_([0-9]+).html$ /index.php?mod=sortvip&sortid=$1&vip=$2&id=$3 last;
请高手把它转换成APACHE的谢谢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询