+ -
当前位置:首页 → 问答吧 → Apache Rewrite 重写规则

Apache Rewrite 重写规则

时间:2011-07-21

来源:互联网

像http://test.abc.com/space/thread.php?uid=210480&page=2这种地址,给跳转到 http://test.abc.com/index.php?uid=210480

规则怎么写?小弟实在写不出来。。。跪求解决。。

作者: guanbaolong   发布时间: 2011-07-21

RewriteEngine on
RewriteRule ^thread.php?uid=([0-9]{1,10})&page=([0-9]{1,2})$ index.php?uid=$1&page=$2

作者: cpuzer   发布时间: 2011-07-21

引用 1 楼 cpuzer 的回复:
RewriteEngine on
RewriteRule ^thread.php?uid=([0-9]{1,10})&page=([0-9]{1,2})$ index.php?uid=$1&page=$2

不好用啊

作者: guanbaolong   发布时间: 2011-07-21