如何htaccess的重定向这漫长的网址 [英] How to htaccess redirect this long url
本文介绍了如何htaccess的重定向这漫长的网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要让我的剧本工作的一些紧急帮助。如何重定向和放大器;自定义的URL下
I need some urgent help in getting my script working. How to redirect & customize the below URL
https://example.com/order?send=value1&send2=value2&send3=value3
到
https://example.com/order/value1/value2/value3
帮助将深表AP preciated。
Help would be deeply appreciated.
推荐答案
试试这个规则:
RewriteEngine On
RewriteRule ^(order)/([^/]+)/([^/]+)/([^/]*)/?$ /$1?send=$2&send2=$3&send3=$4 [L,NC,QSA]
这篇关于如何htaccess的重定向这漫长的网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文