Change client-side redirects to server-side redirects (fixes #12)