开发者

Rewrite rule php

can you please give me a rewrite rule for this?

http://www.example.com/?currentpage=2

I need something like: http://www.e开发者_开发知识库xample.com/curentpage/2.html, or something which is better for seo.

Please help


How about this?

RewriteRule ^/\?(.*?)=(\d+)$ $1/$2.html [R=301,L]


just the same as @limc said but replaced the (.*?) with the currentpage

RewriteRule ^/\?currentpage=(\d+)$ currentpage/$1.html [R=301,L]

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜