UrlRewriteFilter 3.1.0 build 1 configuration overview (generated 08-8-19 ??7:17)


Running Status

Conf file /WEB-INF/urlrewrite.xml loaded Tue Aug 19 05:06:01 CST 2008.

Conf file reload check disabled

Status path /rewrite-status.

Summary of /WEB-INF/urlrewrite.xml

In total there are 21 rules, 7 outbound rules and 3 condtions in the configuration file.

Rule 0

Change any request to zooom.net

URL's matching ^/([^$]*)$ will permanent-redirect to http://zooom\.net/$1.

This rule and it's conditions will use the regex matching engine.

Given that the following condtion is met.

  1. The host HTTP header does NOT match the value zooom\.net

Note, other rules will be processed after this rule.

Rule 1 **DISABLED**

Remove the /wml prefix of any URL starting with /wml, and set the corresponding UA attribute

URL's matching ^/wml(/(.*))*$ will be forwarded to /$1.

This rule and it's conditions will use the regex matching engine.

This rule will set:

  1. An attribute on the request object called UA to the value Nokia7110

Note, other rules will be processed after this rule.

Rule 2 **DISABLED**

Remove the /xhtml prefix of any URL starting with /xhtml, and set the corresponding UA attribute

URL's matching ^/xhtml(/(.*))*$ will be forwarded to /$1.

This rule and it's conditions will use the regex matching engine.

This rule will set:

  1. An attribute on the request object called UA to the value Nokia 60

Note, other rules will be processed after this rule.

Rule 3 **DISABLED**

Remove the /chtml prefix of any URL starting with /chtml, and set the corresponding UA attribute

URL's matching ^/chtml(/(.*))*$ will be forwarded to /$1.

This rule and it's conditions will use the regex matching engine.

This rule will set:

  1. An attribute on the request object called UA to the value CHTML Generic

Note, other rules will be processed after this rule.

Rule 4

Text sitemap

URL's matching ^/sitemap.xml([^$]*)$ will be forwarded to /sitemap_txt.jsp$1.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 5

HTML sitemap

URL's matching ^/sitemap.html([^$]*)$ will be forwarded to /sitemap_html.jsp$1.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 6

Mobile XML sitemap

URL's matching ^/mobile_sitemap.xml([^$]*)$ will be forwarded to /sitemap_mobile.jsp$1.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 7

Convert entity search static URL to JSP query

URL's matching ^/cc.jsp([^$]*)$ will be forwarded to /entity.jsp$1.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 8

Convert entity search static URL to JSP query

URL's matching ^/(\d{8})(\d+)([^-]*)--([^-]*)-([^-]*)-([^\.]*)\.html(\??)([^$]*)$ will be forwarded to /entity.jsp?r=$1&o=$2&c=$3&k=$4&q1=$6&$8.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 9

Convert entity search static URL to JSP query

URL's matching ^/(\d{8})(\d+)([^-]*)--([^-]*)-([^-\.]*)\.html(\??)([^$]*)$ will be forwarded to /entity.jsp?r=$1&o=$2&c=$3&k=$4&q1=&q2=&$7.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 10

Convert entity search static URL to JSP query

URL's matching ^/(\d{8})(\d+)([^-]*)-(\d{1})-([^-]*)-([^-]*)-([^\.]*)\.html(\??)([^$]*)$ will be forwarded to /entity.jsp?r=$1&o=$2&c=$3&k=$5&s1=$4&q1=$7&$9.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 11

Convert entity search static URL to JSP query

URL's matching ^/(\d{8})(\d+)([^-]*)-(\d{1})-([^-]*)-([^-\.]*)\.html(\??)([^$]*)$ will be forwarded to /entity.jsp?r=$1&o=$2&c=$3&k=$5&s1=$4&q1=&q2=&$8.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 12

Convert entity search static URL to JSP query

URL's matching ^/(\d{8})(\d+)([^-]*)-(\d{1})(\d{1})-([^-]*)-([^-]*)-([^\.]*)\.html(\??)([^$]*)$ will be forwarded to /entity.jsp?r=$1&o=$2&c=$3&k=$6&s1=$4&s2=$5&q1=$8&$10.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 13

Convert entity search static URL to JSP query

URL's matching ^/(\d{8})(\d+)([^-]*)-(\d{1})(\d{1})-([^-]*)-([^-\.]*)\.html(\??)([^$]*)$ will be forwarded to /entity.jsp?r=$1&o=$2&c=$3&k=$6&s1=$4&s2=$5&q1=&q2=&$9.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 14

Convert entity search static URL to JSP query

URL's matching ^/(\d{8})(\d+)([^-]*)-(\d{1})(\d{1})(\d{1})-([^-]*)-([^-]*)-([^\.]*)\.html(\??)([^$]*)$ will be forwarded to /entity.jsp?r=$1&o=$2&c=$3&k=$7&s1=$4&s2=$5&s3=$6&q1=$9&$11.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 15

Convert entity search static URL to JSP query

URL's matching ^/(\d{8})(\d+)([^-]*)-(\d{1})(\d{1})(\d{1})-([^-]*)-([^-\.]*)\.html(\??)([^$]*)$ will be forwarded to /entity.jsp?r=$1&o=$2&c=$3&k=$7&s1=$4&s2=$5&s3=$6&q1=&q2=&$10.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 16

Convert entity detail static URL to JSP query

URL's matching ^/(\d+)-([^-]+)-([^-]+)-([^\.]+)\.htm(\??)([^$]*)$ will be forwarded to /detail.jsp?e=$1&r=$2&rn=$3&en=$4&$6.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 17

Convert Olympic static URL to JSP query

URL's matching ^/olympic/([^-]*)-([^-]*)-([^-]*)-([^-]*)-([^-]*)\.html(\??)([^$]*)$ will be forwarded to /olympic/search.jsp?r=$1&c=$2&b=$3&rn=$4&cn=$5&$7.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 18

Convert Olympic static URL to JSP query

URL's matching ^/olympic/(\D)([^-]*)([^\.]*)\.html([^$]*)$ will be forwarded to /olympic/$1$2.jsp$4.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 19

Convert other static URL to JSP query

URL's matching ^/misc/([^$]*)\.html([^$]*)$ will be forwarded to /misc/$1.jsp$2.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Rule 20

The rule means that requests to /test/status/ will be redirected to /rewrite-status the url will be rewritten.

URL's matching /test/status/ will be redirected to %{context-path}/rewrite-status.

This rule and it's conditions will use the regex matching engine.

Note, other rules will be processed after this rule.

Outbound Rule 0

Convert entity search JSP query to static URL (w/ user preference, w/ center name)

Outbound URL's matching ^/entity.jsp\?o=([^&]+)&r=([^&]+)&c=([^&]*)&k=([^&]+)&s1=([^&]*)&s2=([^&]*)&s3=([^&]*)&rn=([^&]+)&cn=([^&]+)([^$]*)$ will be rewritten to /$2$1$3-$5$6$7-$4-$8-$9.html, after response.encodeURL() has been called.

Note, other outbound rules will be processed after this rule.

Outbound Rule 1

Convert entity search JSP query to static URL (w/ user preference, w/o center name)

Outbound URL's matching ^/entity.jsp\?o=([^&]+)&r=([^&]+)&c=([^&]*)&k=([^&]+)&s1=([^&]*)&s2=([^&]*)&s3=([^&]*)&rn=([^&]+)([^$]*)$ will be rewritten to /$2$1$3-$5$6$7-$4-$8.html, after response.encodeURL() has been called.

Note, other outbound rules will be processed after this rule.

Outbound Rule 2

Convert entity search JSP query to static URL (w/o user preference, w/ center name)

Outbound URL's matching ^/entity.jsp\?o=([^&]+)&r=([^&]+)&c=([^&]*)&k=([^&]+)&rn=([^&]+)&cn=([^&$]+)([^$]*)$ will be rewritten to /$2$1$3--$4-$5-$6.html, after response.encodeURL() has been called.

Note, other outbound rules will be processed after this rule.

Outbound Rule 3

Convert entity search JSP query to static URL (w/o user preference, w/o center name)

Outbound URL's matching ^/entity.jsp\?o=([^&]+)&r=([^&]+)&c=([^&]*)&k=([^&]+)&rn=([^&]+)([^$]*)$ will be rewritten to /$2$1$3--$4-$5.html, after response.encodeURL() has been called.

Note, other outbound rules will be processed after this rule.

Outbound Rule 4

Convert entity detail JSP query to static URL

Outbound URL's matching ^/detail.jsp\?e=([^&]+)&r=([^&]+)([^$]*)&rn=([^&]+)&en=([^$]+)([^$]*)$ will be rewritten to /$1-$2-$4-$5.htm, after response.encodeURL() has been called.

Given that the following condtion is met.

  1. The user-agent HTTP header matches the value (.)*(Google|Baidu|Yahoo|MSN|sogou|Sogou|Sosospider)(.)*

Note, other outbound rules will be processed after this rule.

Outbound Rule 5

The outbound-rule specifies that when response.encodeURL is called (if you are using JSTL c:url)
the url /rewrite-status will be rewritten to /test/status/.

The above rule and this outbound-rule means that end users should never see the
url /rewrite-status only /test/status/ both in thier location bar and in hyperlinks
in your pages.

Outbound URL's matching /rewrite-status will be rewritten to /test/status/, after response.encodeURL() has been called.

Note, other outbound rules will be processed after this rule.

Strip URL Session ID's (outbound rule 6)

Outbound URL's matching ^(.*?)(?:\;jsessionid=[^\?#]*)?(\?[^#]*)?(#.*)?$ will be rewritten to $1$2$3.

Given that the following condtion is met.

  1. The user-agent HTTP header matches the value (.)*(Googlebot|Baiduspider)(.)*

Note, other outbound rules will be processed after this rule.


Request Debug Info

General

method: GET
context-path:
port: 80
protocol: HTTP/1.0
remote-addr: 202.86.97.52
remote-host: 202.86.97.52
request-uri: /rewrite-status
request-url: http://zooom.net/rewrite-status
server-name: zooom.net
scheme: http

Request Headers


cache-control: max-age=259200
connection: keep-alive
keep-alive: 300
via: 1.1 europa.nzqa.govt.nz:3128 (squid/2.5.STABLE5)
accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
accept-encoding: identity,gzip,deflate
accept-language: en-us,en;q=0.5
host: zooom.net
user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
x-forwarded-for: 172.16.1.20
content-length: 0

Time info

time: 1219101424000
year: 2008
month: 7
dayofmonth: 19
dayofweek: 3
ampm: 0
hourofday: 7
minute: 17
second: 4
millisecond: 0