Rewrite content data
The Rewrite module is used to rewrite content data from client/server and rewrite, replace, content of query or headers.
| Property | Description |
|---|---|
Name |
Name of the module. |
Content Type |
This is used to decide what type of response to execute client and server rewrite for. Example: text/html |
User Attribute |
Active Directory attribute name for current user. If Attribute Pattern is used in Replace Policy, the value of this attribute is used for pattern match. |
Client Content Replace Policy |
All old values found in content data will be rewritten by the new value, this search is case-insensitive. User Agent Pattern / Attribute Pattern can be used for each policy. Server Variables / Server Variable Pattern can be used as extra rule for rewrite. To examine available Server Variables, enable the checkbox below Debug: List All Server Variables in debug mode to list all variables for each request. If policy is defined with user agent "test" the rewrite will be performed on all user agents containing the word "test". Same for attribute value. Pattern tests is case-insensitive. |
Server Content Replace Policy |
Same options as above Client Content Replace Policy. |
Client Query Replace Policy |
Change content of client query variables. User Agent Pattern / Attribute Pattern can be used for each policy. Server Variables / Server Variable Pattern can be used as extra rule for rewrite. To examine available Server Variables, enable the checkbox below Debug: List All Server Variables in debug mode to list all variables for each request. Query Name field can be a full name, part of name or If policy is defined with user agent "test" the rewrite will be performed on all user agents containing the word "test". Same for attribute value. Pattern tests is case-insensitive. |
Client Header Replace Policy |
Change content of client header values. User Agent Pattern / Attribute Pattern can be used for each policy. Server Variables / Server Variable Pattern can be used as extra rule for rewrite. To examine available Server Variables, enable the checkbox below Debug: List All Server Variables in debug mode to list all variables for each request. Header Name field can be a full name, part of name or If policy is defined with user agent "test" the rewrite will be performed on all user agents containing the word "test". Same for attribute value. Pattern tests is case-insensitive. |
Server Header Replace Policy |
Change content of server header values. User Agent Pattern / Attribute Pattern can be used for each policy. Server Variables / Server Variable Pattern can be used as extra rule for rewrite. To examine available Server Variables, enable the checkbox below Debug: List All Server Variables in debug mode to list all variables for each request. Header Name field can be a full name, part of name or If policy is defined with user agent "test" the rewrite will be performed on all user agents containing the word "test". Same for attribute value. Pattern tests is case-insensitive. |
HTTP Redirect
HTTP Redirect can be used for Microsoft Autodiscover request/response. If a user belongs to another region with different set of servers, this module can redirect that user to that environment based on AD attributes. The user is acquired from request data.
| Property | Description |
|---|---|
Fetch user, request data Regex |
Regular expression; fetch user from request data. |
User attribute |
Active Directory attribute name for the user in previous step. If Attribute Pattern is used in Replace Policy, the value of this attribute is used for pattern match. |
Replace Policy |
If a pattern is a part of the User attribute, a redirect is returned to client targeting Redirect Path. |
User From Query
Default the rewrite is made for the authenticated user. With this feature the user ID from the HTTP query can be used instead. This feature was made for Skype request named Lyncdiscover to rewrite URLs.
| Property | Description |
|---|---|
Enabled |
Click to enable function. |
Query Name |
The name of the HTTP query. |
Query UserId Suffix |
If the user id needs additional data, for example adding @company.com after userId. Empty, no changes. |
Query UserId Regular Expression |
The regular expression used to get user ID from query value. ('.*' - no change.) |
User Search Attribute |
The AD attribute for user lookup. |
User Search Regular Expression |
Regular expression on user search answer. ('.*' - no change.) |