0

我想重写这样一个 URL http://site.com/abc-..-f也可以附加一个参数,例如 http://site.com/abcd?par=123http://site .com/blog.php?page=d&par=123。没有参数它在我使用时工作正常

RewriteRule ^(.+)/(.+)-(.+)-(.+)-(.+)$ blog.php?page=$4

但是,如果我希望参数不被忽略,我应该使用什么?以下不起作用

RewriteRule ^(.+)/(.+)-(.+)-(.+)-(.+)(\?par=)?(.*)$ blog.php?page=$4&par=$6
4

0 回答 0