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