Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The URIs can be either absolute or relative within the web application in which case the context path is added automatically. For example:

Info

It's important to keep in mind the placement of the virtualURIFilter in the chain. The filter acts on the current URI at the time of execution. Any selectors removed from the current URI before the filter executes cannot be configured in fromUri. For example, langauge selectors would be removed from the current URI before the filter executes.

  • Relative

    fromUri: /winter2016
    toUri: forward:/marketing/campaigns/winter2016

...

Info
iconfalse

(warning) Always test your regex-based virtual URI configurations thoroughly before applying them to a live environment. The configurations that seem correct on the surface can yield unwanted results. For example, using boundary matchers (the hat ^, the dollar $, and others) in fromUri and toUri may improve your matches otherwise a simple value such as /foobar.html will be matched not only in /foobar.html but also in /something/foobar.html and /foobar.html/something_else.

Take requested page name and pass it as a productId request parameter to a product detail page.

...