Page 1 of 1

expression question

Posted: Fri Jan 26, 2007 12:09 pm
by itsmani1
here is my regex:

Code: Select all

RewriteRule ^prod/([0-9]+)/(a-z_)tic.html production.php?ContentID=$1
its working fine but i don't know what's the function of "?ContentID=$1"
can anyone tell me about this?

thank you,

Posted: Fri Jan 26, 2007 12:50 pm
by Kieran Huggins
each match in parentheses --> () <-- will be available in the replacement string as a numbered variable, depending on the order in the match string