Posted: March 24th, 2009
Debugging your Zeus redirects
![]()
Here’s a little example of code which can help you work out what’s going wrong with your Zeus webserver redirects. With the ‘SET BODY’ command you can place a message in the body content of the page and can output various variable and array content.
The following needs to be in a rewrite.script on your site root:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | RULE_0_START:
map path into SCRATCH:DOCROOT from /
set SCRATCH:ORIG_URL = %{URL}
set SCRATCH:REQUEST_URI = %{URL}
#Check for Querystring and add to Scratch
match SCRATCH:ORIG_URL into $ with ^/(.*)\?(.*)$
if matched then
set SCRATCH:QUERY_STRING = $2
set BODY=QUERY: %{SCRATCH:QUERY_STRING}
endif
RULE_0_END: |
The above will test for a request matching all characters and ending with a query and will output “QUERY: YOUR QUERY”. Once you have the write set-up, you can then add the # symbol to turn it into notation and apply any rules.
Here are some useful Zeus web server links from their website (zeus.com):
Share this post:









