HTAccess - Confusing clean url's

后端 未结 2 375
野趣味
野趣味 2021-01-27 17:32

If i wanted to simply redirect /clients/page/ to /clients.php?view=page i would use something as simple as this, it works great.

Option         


        
2条回答
  •  旧巷少年郎
    2021-01-27 17:52

    I think you can use the [QSA] flag, which stands for Query String Append. This means that you can add variables to the Query String easily:

    RewriteRule ^clients/([^/]+) /clients.php?section=$1 [QSA, NC]
    

提交回复
热议问题