The SiteContextPipelineServlet
prevents an infinite loop of redirects by allowing only one redirect per request. On the first redirect, the pipeline servlet appends a parameter to the redirect URL. A request with this parameter cannot be redirected again; instead, it returns with a 404 error.
For example, the site repository might provide the following redirect settings for sites Jasper
and Felix
:
Jasper sets its
siteDownURL
property to the URL of site Felix.Felix sets its
preOpeningURL
andpostClosingURL
properties to the URLs of sites Casper and Astro, respectively.
Jasper is disabled, so the SiteContextPipelineServlet
redirects requests to Felix. Felix is inactive, but instead of forwarding the request to sites Casper or Astro, the SiteContextPipelineServlet
aborts the request and returns a 404 error.