fix redirect after seprate client and server pot