开发者

htaccess change '=' to ','

开发者 https://www.devze.com 2022-12-25 19:58 出处:网络
how to change\'?\' to \',\' this is now index.php?page=2&am开发者_如何学运维p;search=stackoverflow

how to change '?' to ','

this is now

index.php?page=2&am开发者_如何学运维p;search=stackoverflow

i want it to be like this

index.php/page,2/search,stackoverflow

any idea?


RewriteEngine On
RewriteBase /
RewriteRule ^index.php/page,([0-9]+)/search,([a-zA-Z0-9]+)$ index.php?page=$1&search=$2 [QSA,L]

Should work. I tested it. Will work assuming "page" is a number, and "search" is a character which matches a-zA-Z0-9

0

精彩评论

暂无评论...
验证码 换一张
取 消