While working with the AEM dispatcher there are too many configurations and rules we have to handle to deliver the right content and hide the secure data of the system.
The behavior of RewriteRule can be modified by RewriteRule flags. There are ample flags available that help us to modify the behavior of the rewrite rule, those flags get added in the form of an Array object at the end of the rewrite rule line. Below is the syntax with an example.
Syntax of AEM Dispatcher RewriteRule
RewriteRule pattern target [Flag1,Flag2,Flag3]