I've been trying to find a site that explains what each part of this code does but I can't seem to find it. I understand some of the regular expression, but can't seem to grasp what "$1" or "$2" are for. what do those do? What does the "^" and "$" after the .html serve?Code:RewriteEngine on RewriteRule ^article/([0-9]+)/([0-9]+)/(.*?).html$ /article.php?articleid=$1&categoryid=$2
all I know is that it turns this...
into this...HTML Code:http://www.yoursite.com/product.php?productid=2&categoryid=3
Code:http://www.yoursite.com/product/13/3/2-GB-MP3-player.html.







Bookmarks