我的PHP之旅
apache Rewrite的[QSA]追加查询字符串的使用
post by:风子 2012-9-10 11:00

通过RewriteRule ^news-([0-9]+)\.html(.*)$ newsDetail.php?id=$1$2 [QSA]或者RewriteRule ^news-([0-9]+)\.html?(.*)$ newsDetail.php?id=$1$2 [QSA]或者^resume-([0-9]+).html index.php?mod=person&act=resume&id=$1 [QSA]

就能将 news-123.html?a=1b=1伪到newsDetail.php?id=123&a=1&b=1

 

评论:
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容