我想让我的脚本正常工作。如何重定向和自定义以下网址?
https://example.com/order?send=value1&send2=value2&send3=value3
到
https://example.com/order/value1/value2/value3
答案 0 :(得分:1)
此网站可以帮助您:http://www.generateit.net/mod-rewrite/
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /order?send=$1&send2=$2&send3=$3 [L]
答案 1 :(得分:0)
尝试此规则:
RewriteEngine On
RewriteRule ^(order)/([^/]+)/([^/]+)/([^/]*)/?$ /$1?send=$2&send2=$3&send3=$4 [L,NC,QSA]