Skip to main content

Posts

Showing posts with the label URL Rewrite

Extending Tuckey URL Rewrite Filter with Tridion-published rules

This post shows a way of extending Paul Tuckey’s URL rewrite filter ( https://code.google.com/p/urlrewritefilter/ ). Namely, it extends the Java version 4.0.3 of the filter and makes it use rewrite/redirect rules published from Tridion. The rules are published to the Content Delivery Database as a dynamic DD4T page, and use specific view model objects that make reading the rules very easy. The extension I wrote will also attempt to load the existing rules in file “ /WEB-INF/urlrewrite.xml ” - the default configuration file used by URL rewrite filter. Tridion Part We define an Embedded Schema called EmbeddedRedirect having the following fields: from - single value text; to - single value text; permanent - singe value drop down or radian button text field based on values of a list with possible values “Yes” or “No”; We define a Schema called Redirects having the following field: redirect - multi value embedded field based on Schema EmbeddedRedirect ; Next, we a...