httpd Apache server -> mod_rewrite -> backreferences
The following picture is about understanding the reference to parentheses ([Flags] are omitted).
If you use parentheses, backlinks are made to what is in parentheses and then you can use it somewhere in the conditions using %1
and $1
.
The origin of the image is in the unofficial documentation for httpd Apache 2.2
https://publib.boulder.ibm.com/httpserv/manual70/rewrite/rewrite_intro.html#InternalBackRefs
There is no such picture in official httpd Apache 2.4 documentation
https://httpd.apache.org/docs/2.4/rewrite/intro.html#InternalBackRefs
The essence of this post is just to verify that I understood it correctly and whether it works in httpd Apache 2.4.
Would anyone know?