Added 404 for public links.
Fixed WebDAV rewrite.