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