Rewriting URL that contains question mark

前端 未结 1 832
你的背包
你的背包 2021-01-24 12:50

I am encountering a problem regarding URL rewriting. I am using Apache\'s mod rewrite to rewrite URLs. For example, I rewrite URL

  • www.website.com/some/path/
相关标签:
1条回答
  • 2021-01-24 13:32

    I suggest (as mario) to take a look into the QSA flag (Query String Append). Additionally I would take the question-mark out of the character class in the regex:

    RewriteRule ^([a-z_/]+)$ request.php?string=$1 [L,QSA]
    
    0 讨论(0)
提交回复
热议问题