开发者

htaccess change '=' to ','

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜