How to htaccess redirect this long URL?

前端 未结 2 1927
难免孤独
难免孤独 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]
    
    0 讨论(0)
  • 2021-01-27 23:04

    this site can help you: http://www.generateit.net/mod-rewrite/

    RewriteEngine On
    RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /order?send=$1&send2=$2&send3=$3 [L]
    
    0 讨论(0)
提交回复
热议问题