C2MS Request Routing

The C2MS system is designed to answer for all URLs on a website that do not have a physical on-disk file.  This is typically accomplished by setting up an apache configuration mod-rewrite rule as follows:

 

 

This rule routes traffic to the c2msfoundation module’s C2msSIteFrontController’s actionRender method.  The actionRender method determines how to handle the URL using the following rules:

  1. If the request URL matches a physical file on disk, serve via Apache.
  2. The request URL is checked against the cbmApplicationUrl table and if found handled by an application mount.
  3. The request URL is checked against the cbmUrl table and if found handled by the block type renderer associated with the block view joined to cbmUrl.
  4. Active theme checked for error 404 view and if found rendered.
  5. C2MS default 404 view.