开发者

mod_rewrite - how to rewrite an URL?

Is there a way to rewrite an URL like

http://mydomain.com/getProdu开发者_如何学Goct.php?id=1&mode=simple

in

http://mydomain.com/products/1/simple

using mod_rewrite in Apache2?


RewriteRule /products/([0-9]+)/([a-z]+) /getProduct.php?id=$1&mode=$2

For more information search google for mod_rewrite tutorials.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜