How to htaccess redirect this long URL?

前端 未结 2 1926
难免孤独
难免孤独 2021-01-27 22:49

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
         


        
2条回答
  •  伪装坚强ぢ
    2021-01-27 22:59

    Try this rule:

    RewriteEngine On
    
    RewriteRule ^(order)/([^/]+)/([^/]+)/([^/]*)/?$ /$1?send=$2&send2=$3&send3=$4 [L,NC,QSA]
    

提交回复
热议问题