Possible Duplicate:
Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask?
what's the use of back references in Rewriterule in mod_rewrite?
what's the use of back references in Rewriterule in mod_rewrite?
| |||
|
feedback
|
This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.
|
See this for excruciating details: Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask? Backreferences are used to address specific match-groups in
(2008|2009) is a reference, and $1 is the backreference. Same for (.*) and $2. As you can see, they're used for URL rewriting. See the "RewriteRule matching syntax" section of the answer I linked to. | |||
|
feedback
|