Skip to content

Instantly share code, notes, and snippets.

@paulgroves
Created March 31, 2012 10:07
Show Gist options
  • Save paulgroves/2261485 to your computer and use it in GitHub Desktop.
Save paulgroves/2261485 to your computer and use it in GitHub Desktop.
Textpattern rewrite rules for Zeus webserver
# Zeus webserver version of basic Textpattern mod_rewrite rules
map path into SCRATCH:path from %{URL}
look for file at %{SCRATCH:path}
if exists then goto END
look for dir at %{SCRATCH:path}
if exists then goto END
# Do not apply to admin section i.e /textpattern
match URL into $ with ^/textpattern.*$
if matched then goto END
match URL into $ with ^/css.php?.*$
if matched then goto END
set URL = /index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment