Skip to content

Instantly share code, notes, and snippets.

@clare485
Created November 22, 2013 17:21
Show Gist options
  • Save clare485/7603597 to your computer and use it in GitHub Desktop.
Save clare485/7603597 to your computer and use it in GitHub Desktop.
Zeus redirection can often confuse people as it looks far more complicated than mod_rewrite under Apache. Below I've included some examples of common rewrites that you may find useful. All of these examples just need to be placed into a file named rewrite.script at the root of your website (where the index file is).
Redirect to a Different Website
If you want to redirect one website to another on the Zeus Web Server platform, simply use the following code :
insensitive match URL into $ with ^/(.*)
if matched then
set OUT:Location = http://www.othersite.com
set RESPONSE=301
set BODY=$1
goto END
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment