mod_rewrite – how to rewrite an URL?



Is there a way to rewrite an URL like


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.

Answered By – Simon

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More