Menu

Showing posts with label AEM Dispatcher. Show all posts
Showing posts with label AEM Dispatcher. Show all posts

AEM Dispatcher RewriteRule Flags

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]

e.g.

    


References

1. Apache RewriteRule Flags

2. Apache Module mod_rewrite

How dispatcher fulfill request?

When clients send HTTP requests to the web server, the URL of the requested page must be resolved to the content in the Dispatcher cache, and eventually to the content in the repository.

 

  1. The domain name system discovers the IP address of the web server which is registered for the domain name in the HTTP request.
  2. The HTTP request is sent to the web server.
  3. The HTTP request is passed to Dispatcher.
  4. Dispatcher determines whether the cached files are valid. If valid, the cached files are served to the client.
  5. If cached files are not valid, Dispatcher requests newly-rendered pages from the AEM publish instance.

References