From 5714f77c750355759b448ea93307fabb0522cbbc Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 21 Jan 2012 14:21:29 -0500 Subject: [PATCH] gitignore rewrite.script; index test --- .gitignore | 1 + pages/index.mako | 1 + rewrite.script | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 pages/index.mako diff --git a/.gitignore b/.gitignore index 35d6f16..ac9d546 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pyc temp/ www/ +rewrite.script diff --git a/pages/index.mako b/pages/index.mako new file mode 100644 index 0000000..980a0d5 --- /dev/null +++ b/pages/index.mako @@ -0,0 +1 @@ +Hello World! diff --git a/rewrite.script b/rewrite.script index ddbdabb..c9183c1 100644 --- a/rewrite.script +++ b/rewrite.script @@ -3,3 +3,8 @@ if matched then set URL = /~earwig/rewrite/hello.fcgi$1 goto END endif +match URL into $ with ^/~earwig/index(\?.*?)?$ +if matched then + set URL = /~earwig/rewrite/index.fcgi$1 + goto END +endif