Conf file /WEB-INF/urlrewrite.xml
loaded Tue Aug 19 05:06:01 CST 2008.
Status path /rewrite-status
.
In total there are 21 rules, 7 outbound rules and 3 condtions in the configuration file.
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.
host
HTTP header does NOT match the value zooom\.net
Note, other rules will be processed after this rule.
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:
request
object called UA
to the value Nokia7110
Note, other rules will be processed after this rule.
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:
request
object called UA
to the value Nokia 60
Note, other rules will be processed after this rule.
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:
request
object called UA
to the value CHTML Generic
Note, other rules will be processed after this rule.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
user-agent
HTTP header matches the value (.)*(Google|Baidu|Yahoo|MSN|sogou|Sogou|Sosospider)(.)*
Note, other outbound rules will be processed after this rule.
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.
Outbound URL's matching ^(.*?)(?:\;jsessionid=[^\?#]*)?(\?[^#]*)?(#.*)?$
will be rewritten to $1$2$3
.
Given that the following condtion is met.
user-agent
HTTP header matches the value (.)*(Googlebot|Baiduspider)(.)*
Note, other outbound rules will be processed after this rule.
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
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: 1219101424000 year: 2008 month: 7 dayofmonth: 19 dayofweek: 3 ampm: 0 hourofday: 7 minute: 17 second: 4 millisecond: 0