如果我有像这样的.htaccess rewriterules:
RewriteRule ^example/(.*)$ example?id=$1 [L]
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
它会重写为index.php?q = example?id = def
我希望它是index.php?q = example& id = def
我可以改为使用rewriterules:
RewriteRule ^example/(.*)$ example&id=$1 [L]
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
它会起作用,但感觉不对。这样做的正确方法是什么?