我想根據其部分查詢字符串重寫以下URL,但同時我想保留查詢字符串的其餘部分。我如何才能部分重寫基於查詢字符串的URL
原始地址:
http://example.com/index.php?route=product/show&item_id=25&show_mobile=true
轉換爲:
http://example.com/product/show/?item_id=25&show_mobile=true
我已經搜查,發現在Apache以下維基:
https://wiki.apache.org/httpd/RewriteQueryString
但它沒有在Query字符串中重寫單個密鑰&值對並保留其餘部分的部分。