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