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]
精彩评论