(rewrite
    (url 'http://*/index.html')
    (reply 301 (url '/index.html' '/'))
)
(rewrite
    (host-name 'www.*')
    (reply 301 (& 'http://' (host-name 'www.' '') short-url))
)
(rewrite
    (url (& 'http://' host-name))
    (reply 301 '/')
)