apache Rewrite的[QSA]追加查询字符串的使用
2012-9-10 11:00 Monday  

分类: Linux 标签: PHP html newsDetail RewriteRule news 评论(77) 浏览(98655)

通过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

 

+1 16

留下你的看法: