dq8081 2013-11-18 12:23
浏览 14
已采纳

如何htaccess重定向这个长URL?

I am trying to get my script working. How to redirect and customize the below URL?

https://example.com/order?send=value1&send2=value2&send3=value3

to

https://example.com/order/value1/value2/value3
  • 写回答

2条回答 默认 最新

  • doudang2817 2013-11-18 14:13
    关注

    Try this rule:

    RewriteEngine On
    
    RewriteRule ^(order)/([^/]+)/([^/]+)/([^/]*)/?$ /$1?send=$2&send2=$3&send3=$4 [L,NC,QSA]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?